beforeCollapse
fires before collapsing a sidebar
beforeCollapse: () => boolean | void;
Returns:
Return false
to prevent collapsing a sidebar; otherwise,true
.
Example
sidebar.events.on("beforeCollapse", function() {
// your logic here
return false;
});
Related sample: Sidebar. Events
Change log:
added in v6.4