Skip to main content

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