Skip to main content

beforeExpand

fires before expanding a sidebar

beforeExpand: () => boolean | void;

Returns:

Return false to prevent expanding a sidebar; otherwise, true.

Example

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

Related sample: Sidebar. Events

Change log:

added in v6.4