src/dual-listbox.js
/**
     * Filters the listboxes with the given searchString.
     *
     * @param {Object} searchString
     * @param dualListbox
     */
Filters the listboxes with the given searchString.
@param {Object} searchString
@param dualListbox
Filters the listboxes with the given searchString . @param { Object } searchString @param dualListbox
searchLists(searchString, dualListbox) {
        let items = dualListbox.querySelectorAll(`.${ITEM_ELEMENT}`);
        let lowerCaseSearchString = searchString.toLowerCase();
        for (let i = 0; i < items.length; i++) {
            let item = items[i];
            if (
                item.textContent
                    .toLowerCase()
                    .indexOf(lowerCaseSearchString) === -1
            ) {
                item.style.display = "none";
            } else {
                item.style.display = "list-item";
            }
        }
    }
searchLists ( searchString , dualListbox ) { let items = dualListbox . querySelectorAll ( ` ${ ITEM_ELEMENT } ` ) ; let lowerCaseSearchString = searchString . toLowerCase ( ) ; for ( let i = 0 ; i < items . length ; i ++ ) { let item = items [ i ] ; if ( item . textContent . toLowerCase ( ) . indexOf ( lowerCaseSearchString ) === - 1 ) { item . style . display = "none" ; } else { item . style . display = "list-item" ; } } }
Filters the listboxes with the given searchString.
Filters the listboxes with the given searchString .