loadChildren(option, // tslint:disable-line:no-any
    columnIndex, success, failure) {
        /** @type {?} */
        const loadFn = this.cascaderComponent.nzLoadData;
        if (loadFn) {
            // If there isn't any option in columns.
            this.$loading.next(columnIndex < 0);
            if (typeof option === 'object') {
                option.loading = true;
            }
            loadFn(option, columnIndex).then((/**
             * @return {?}
             */
            () => {
                option.loading = false;
                if (option.children) {
                    this.setColumnData(option.children, columnIndex + 1, option);
                }
                if (success) {
                    success();
                }
                this.$loading.next(false);
                this.$redraw.next();
            }), (/**
             * @return {?}
             */
            () => {
                option.loading = false;
                option.isLeaf = true;
                if (failure) {
                    failure();
                }
                this.$redraw.next();
            }));
        }
    }
/**
     * Load children of an option asynchronously.
     * @param {?} option
     * @param {?} columnIndex
     * @param {?=} success
     * @param {?=} failure
     * @return {?}
     */
Load children of an option asynchronously.
Load children of an option asynchronously .
loadChildren(option, 
    columnIndex, success, failure) {
        const loadFn = this.cascaderComponent.nzLoadData;
        if (loadFn) {
            this.$loading.next(columnIndex < 0);
            if (typeof option === 'object') {
                option.loading = true;
            }
            loadFn(option, columnIndex).then((
            () => {
                option.loading = false;
                if (option.children) {
                    this.setColumnData(option.children, columnIndex + 1, option);
                }
                if (success) {
                    success();
                }
                this.$loading.next(false);
                this.$redraw.next();
            }), (
            () => {
                option.loading = false;
                option.isLeaf = true;
                if (failure) {
                    failure();
                }
                this.$redraw.next();
            }));
        }
    }
loadChildren ( option , columnIndex , success , failure ) { const loadFn = this . cascaderComponent . nzLoadData ; if ( loadFn ) { this . $loading . next ( columnIndex < 0 ) ; if ( typeof option === 'object' ) { option . loading = true ; } loadFn ( option , columnIndex ) . then ( ( ( ) => { option . loading = false ; if ( option . children ) { this . setColumnData ( option . children , columnIndex + 1 , option ) ; } if ( success ) { success ( ) ; } this . $loading . next ( false ) ; this . $redraw . next ( ) ; } ) , ( ( ) => { option . loading = false ; option . isLeaf = true ; if ( failure ) { failure ( ) ; } this . $redraw . next ( ) ; } ) ) ; } }
Load children of an option asynchronously.
Load children of an option asynchronously .
// tslint:disable-line:no-any /** @type {?} */ // If there isn't any option in columns. /**
             * @return {?}
             */ /**
             * @return {?}
             */