render() {
        if (this.direction == "left") { // Left Sidebar
            if (this.visible) {
                this.sidebar.classList.add("gus_sidebar_visible")

                if (document.querySelector("gus-ui") !== undefined && this.pushUi) { // Push the full Ui
                    var ui = document.querySelector("gus-ui")

                    ui.style.left = `${this.sidebar.clientWidth}px`
                    document.body.style.overflow = 'hidden'
                }
            }
            else {
                this.sidebar.classList.remove("gus_sidebar_visible")

                if (document.querySelector("gus-ui") !== undefined && this.pushUi) { // Replace the full Ui
                    var ui = document.querySelector("gus-ui")

                    ui.style.left = `0`
                    document.body.style.overflow = 'auto'
                }
            }
        }
        else {
            if (this.direction == "right") { // Right Sidebar
                if (this.visible) {
                    this.sidebar.classList.add("gus_sidebar_right_visible")

                    if (document.querySelector("gus-ui") !== undefined && this.pushUi) { // Push the full Ui
                        var ui = document.querySelector("gus-ui")
    
                        ui.style.right = `${this.sidebar.clientWidth}px`
                        document.body.style.overflow = 'hidden'
                    }
                }
                else {
                    this.sidebar.classList.add("gus_sidebar_right")
                    this.sidebar.classList.remove("gus_sidebar_right_visible")

                    if (document.querySelector("gus-ui") !== undefined && this.pushUi) { // Replace the full Ui
                        var ui = document.querySelector("gus-ui")
    
                        ui.style.right = `0`
                        document.body.style.overflow = 'auto'
                    }
                }
            }
        }
    }
// Re-render the whole side bar
Re-render the whole side bar
Re - render the whole side bar
render() {
        if (this.direction == "left") { 
            if (this.visible) {
                this.sidebar.classList.add("gus_sidebar_visible")
                if (document.querySelector("gus-ui") !== undefined && this.pushUi) { 
                    var ui = document.querySelector("gus-ui")
                    ui.style.left = `${this.sidebar.clientWidth}px`
                    document.body.style.overflow = 'hidden'
                }
            }
            else {
                this.sidebar.classList.remove("gus_sidebar_visible")
                if (document.querySelector("gus-ui") !== undefined && this.pushUi) { 
                    var ui = document.querySelector("gus-ui")
                    ui.style.left = `0`
                    document.body.style.overflow = 'auto'
                }
            }
        }
        else {
            if (this.direction == "right") { 
                if (this.visible) {
                    this.sidebar.classList.add("gus_sidebar_right_visible")
                    if (document.querySelector("gus-ui") !== undefined && this.pushUi) { 
                        var ui = document.querySelector("gus-ui")
                        ui.style.right = `${this.sidebar.clientWidth}px`
                        document.body.style.overflow = 'hidden'
                    }
                }
                else {
                    this.sidebar.classList.add("gus_sidebar_right")
                    this.sidebar.classList.remove("gus_sidebar_right_visible")
                    if (document.querySelector("gus-ui") !== undefined && this.pushUi) { 
                        var ui = document.querySelector("gus-ui")
                        ui.style.right = `0`
                        document.body.style.overflow = 'auto'
                    }
                }
            }
        }
    }
render ( ) { if ( this . direction == "left" ) { if ( this . visible ) { this . sidebar . classList . add ( "gus_sidebar_visible" ) if ( document . querySelector ( "gus-ui" ) !== undefined && this . pushUi ) { var ui = document . querySelector ( "gus-ui" ) ui . style . left = ` ${ this . sidebar . clientWidth } ` document . body . style . overflow = 'hidden' } } else { this . sidebar . classList . remove ( "gus_sidebar_visible" ) if ( document . querySelector ( "gus-ui" ) !== undefined && this . pushUi ) { var ui = document . querySelector ( "gus-ui" ) ui . style . left = ` ` document . body . style . overflow = 'auto' } } } else { if ( this . direction == "right" ) { if ( this . visible ) { this . sidebar . classList . add ( "gus_sidebar_right_visible" ) if ( document . querySelector ( "gus-ui" ) !== undefined && this . pushUi ) { var ui = document . querySelector ( "gus-ui" ) ui . style . right = ` ${ this . sidebar . clientWidth } ` document . body . style . overflow = 'hidden' } } else { this . sidebar . classList . add ( "gus_sidebar_right" ) this . sidebar . classList . remove ( "gus_sidebar_right_visible" ) if ( document . querySelector ( "gus-ui" ) !== undefined && this . pushUi ) { var ui = document . querySelector ( "gus-ui" ) ui . style . right = ` ` document . body . style . overflow = 'auto' } } } } }
Re-render the whole side bar
Re - render the whole side bar
// Left Sidebar // Push the full Ui // Replace the full Ui // Right Sidebar // Push the full Ui // Replace the full Ui