function handleMenuToggle(evt)
    {
        const state = modelCtrls.dataset.state;
        if (state === "collapsed")
            modelCtrls.dataset.state =  "expanded";
        else
            modelCtrls.dataset.state = "collapsed";
    }
/* ------------------------------------------------------------------------
     * handleMenuToggle
     * ------------------------------------------------------------------------
     * param evt - Javascript event
     *
     * Toggle the model controls menu to expand or collapse depending upon
     * current state.
     */


param evt - Javascript event

Toggle the model controls menu to expand or collapse depending upon
current state.
param evt - Javascript event Toggle the model controls menu to expand or collapse depending upon current state .
function handleMenuToggle(evt)
    {
        const state = modelCtrls.dataset.state;
        if (state === "collapsed")
            modelCtrls.dataset.state =  "expanded";
        else
            modelCtrls.dataset.state = "collapsed";
    }
function handleMenuToggle ( evt ) { const state = modelCtrls . dataset . state ; if ( state === "collapsed" ) modelCtrls . dataset . state = "expanded" ; else modelCtrls . dataset . state = "collapsed" ; }
handleMenuToggle
handleMenuToggle