toggleSearchingMode(toSearching) {
        this.inSearchingMode = toSearching;
        if (toSearching) {
            this.activatedOptionsSnapshot = [...this.activatedOptions];
            this.activatedOptions = [];
            this.selectedOptions = [];
            this.$redraw.next();
        }
        else {
            // User quit searching mode without selecting an option.
            this.activatedOptions = [...this.activatedOptionsSnapshot];
            this.selectedOptions = [...this.activatedOptions];
            this.columns = [...this.columnsSnapshot];
            this.syncOptions();
            this.$redraw.next();
        }
    }
/**
     * Toggle searching mode by UI. It deals with things not directly related to UI.
     * @param {?} toSearching If this cascader is entering searching mode
     * @return {?}
     */
Toggle searching mode by UI. It deals with things not directly related to UI.
@param {?} toSearching If this cascader is entering searching mode
@return {?}
Toggle searching mode by UI . It deals with things not directly related to UI . @param { ? } toSearching If this cascader is entering searching mode @return { ? }
toggleSearchingMode(toSearching) {
        this.inSearchingMode = toSearching;
        if (toSearching) {
            this.activatedOptionsSnapshot = [...this.activatedOptions];
            this.activatedOptions = [];
            this.selectedOptions = [];
            this.$redraw.next();
        }
        else {
            this.activatedOptions = [...this.activatedOptionsSnapshot];
            this.selectedOptions = [...this.activatedOptions];
            this.columns = [...this.columnsSnapshot];
            this.syncOptions();
            this.$redraw.next();
        }
    }
toggleSearchingMode ( toSearching ) { this . inSearchingMode = toSearching ; if ( toSearching ) { this . activatedOptionsSnapshot = [ ... this . activatedOptions ] ; this . activatedOptions = [ ] ; this . selectedOptions = [ ] ; this . $redraw . next ( ) ; } else { this . activatedOptions = [ ... this . activatedOptionsSnapshot ] ; this . selectedOptions = [ ... this . activatedOptions ] ; this . columns = [ ... this . columnsSnapshot ] ; this . syncOptions ( ) ; this . $redraw . next ( ) ; } }
Toggle searching mode by UI.
Toggle searching mode by UI .
// User quit searching mode without selecting an option.