src/dual-listbox.js
/**
     * @Private
     * Creates all the static elements for the Dual listbox.
     */
@Private
Creates all the static elements for the Dual listbox.
@Private Creates all the static elements for the Dual listbox .
_initReusableElements() {
        this.dualListbox = document.createElement("div");
        this.dualListbox.classList.add(MAIN_BLOCK);
        if (this.select.id) {
            this.dualListbox.classList.add(this.select.id);
        }
        this.dualListBoxContainer = document.createElement("div");
        this.dualListBoxContainer.classList.add(CONTAINER_ELEMENT);
        this.availableList = document.createElement("ul");
        this.availableList.classList.add(AVAILABLE_ELEMENT);
        this.selectedList = document.createElement("ul");
        this.selectedList.classList.add(SELECTED_ELEMENT);
        this.availableListTitle = document.createElement("div");
        this.availableListTitle.classList.add(TITLE_ELEMENT);
        this.availableListTitle.innerText = this.availableTitle;
        this.selectedListTitle = document.createElement("div");
        this.selectedListTitle.classList.add(TITLE_ELEMENT);
        this.selectedListTitle.innerText = this.selectedTitle;
        this._createButtons();
        this._createSearchLeft();
        this._createSearchRight();
    }
_initReusableElements ( ) { this . dualListbox = document . createElement ( "div" ) ; this . dualListbox . classList . add ( MAIN_BLOCK ) ; if ( this . select . id ) { this . dualListbox . classList . add ( this . select . id ) ; } this . dualListBoxContainer = document . createElement ( "div" ) ; this . dualListBoxContainer . classList . add ( CONTAINER_ELEMENT ) ; this . availableList = document . createElement ( "ul" ) ; this . availableList . classList . add ( AVAILABLE_ELEMENT ) ; this . selectedList = document . createElement ( "ul" ) ; this . selectedList . classList . add ( SELECTED_ELEMENT ) ; this . availableListTitle = document . createElement ( "div" ) ; this . availableListTitle . classList . add ( TITLE_ELEMENT ) ; this . availableListTitle . innerText = this . availableTitle ; this . selectedListTitle = document . createElement ( "div" ) ; this . selectedListTitle . classList . add ( TITLE_ELEMENT ) ; this . selectedListTitle . innerText = this . selectedTitle ; this . _createButtons ( ) ; this . _createSearchLeft ( ) ; this . _createSearchRight ( ) ; }
@Private
 Creates all the static elements for the Dual listbox.
@Private Creates all the static elements for the Dual listbox .