beforeCollapse

fires before collapsing a sidebar

boolean beforeCollapse(){ ... };

Returns

booleanfalse - to prevent collapsing a sidebar, otherwise - true

Example

sidebar.events.on("BeforeCollapse", function() {
    // your logic here
    return false;
});

Related samples

See also
Change log

added in v6.4

Back to top