beforeHide
fires before hiding an item of Toolbar
beforeHide: (id: Id, events: Event) => void | boolean;
Parameters:
id: string | number
- the ID of a toolbar itemevents: Event
- a native event object
Returns:
Return false
to prevent hiding of a toolbar item; otherwise, true
.
Example
toolbar.events.on("beforeHide", function(id, event){
// your code here
return false;
});
Related sample: Toolbar. Events