beforeExpand

fires before expanding a sidebar

boolean beforeExpand(){ ... };

Returns

booleanfalse - to prevent expanding a sidebar, otherwise - false

Example

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

Related samples

See also
Change log

added in v6.4

Back to top