applySidebar() {
        const sb = document.querySelector(`[${this.ATTR}]`);

        if (sb) {
            const activeItems = sb.querySelectorAll(`[${this.ACTIVE}="true"]`);

            if (activeItems.length > 0) {
                activeItems.forEach(item => {
                    this.expandItem(item, sb);
                });
            }

            this.addTriggers(sb);
        }
    }
/**
     * Finds all sidebars and applies appropriate classes and attributes on load
     * @return {void}
     */
Finds all sidebars and applies appropriate classes and attributes on load
@return {void}
Finds all sidebars and applies appropriate classes and attributes on load @return { void }
applySidebar() {
        const sb = document.querySelector(`[${this.ATTR}]`);
        if (sb) {
            const activeItems = sb.querySelectorAll(`[${this.ACTIVE}="true"]`);
            if (activeItems.length > 0) {
                activeItems.forEach(item => {
                    this.expandItem(item, sb);
                });
            }
            this.addTriggers(sb);
        }
    }
applySidebar ( ) { const sb = document . querySelector ( ` ${ this . ATTR } ` ) ; if ( sb ) { const activeItems = sb . querySelectorAll ( ` ${ this . ACTIVE } ` ) ; if ( activeItems . length > 0 ) { activeItems . forEach ( item => { this . expandItem ( item , sb ) ; } ) ; } this . addTriggers ( sb ) ; } }
Finds all sidebars and applies appropriate classes and attributes on load
 @return {void}
Finds all sidebars and applies appropriate classes and attributes on load @return { void }