Skip to main content

beforeHide

fires before hiding an item of Menu

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

Parameters:

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

Returns:

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

Example

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