Skip to main content

beforeHide

fires before hiding an item of Sidebar

beforeHide: (id: Id, events: Event) => void | boolean;

Parameters:

  • id: string | number - the ID of a sidebar item
  • events: Event - a native event object

Returns:

Return false to prevent hiding of a sidebar item; otherwise, true.

Example

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

Related sample: Sidebar. Events