imports/vx/client/code/ux.js
/**
     * Toggle the collapsed state of the right side panel.
     *
     * @param {string} advancedSelector Selector of "advanced" division.
     * @param {string} collapseSelector Selector of collapse control.
     */
Toggle the collapsed state of the right side panel.
@param {string} advancedSelector Selector of "advanced" division.
@param {string} collapseSelector Selector of collapse control.
Toggle the collapsed state of the right side panel . @param { string } advancedSelector Selector of " advanced " division . @param { string } collapseSelector Selector of collapse control .
toggleCollapse(advancedSelector, collapseSelector) {
        let $advanced = $(advancedSelector)
        let $collapseControl = $(collapseSelector)
        let advancedVisible = $advanced.hasClass("in")
        if (advancedVisible) {
            $advanced.collapse("hide")
            $collapseControl.removeClass("fa-chevron-up")
            $collapseControl.addClass("fa-chevron-down")
        }
        else {
            $advanced.collapse("show")
            $collapseControl.removeClass("fa-chevron-down")
            $collapseControl.addClass("fa-chevron-up")
        }
    }
toggleCollapse ( advancedSelector , collapseSelector ) { let $advanced = $ ( advancedSelector ) let $collapseControl = $ ( collapseSelector ) let advancedVisible = $advanced . hasClass ( "in" ) if ( advancedVisible ) { $advanced . collapse ( "hide" ) $collapseControl . removeClass ( "fa-chevron-up" ) $collapseControl . addClass ( "fa-chevron-down" ) } else { $advanced . collapse ( "show" ) $collapseControl . removeClass ( "fa-chevron-down" ) $collapseControl . addClass ( "fa-chevron-up" ) } }
Toggle the collapsed state of the right side panel.
Toggle the collapsed state of the right side panel .