beforeHide

fires before hiding an item of Sidebar

boolean beforeHide(string id,Event e){ ... };

Parameters

idstringthe ID of a sidebar item
eEventa native event object

Returns

booleanfalse - to prevent hiding of a sidebar item, otherwise - true

Example

sidebar.events.on("BeforeHide", function(id, event){
    // your code here
    return false;
});

Related samples

See also
Back to top