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