beforeClose
fires before closing a tab in Tabbar
beforeClose: (id: string) => boolean | void;
Parameters:
id: string
- the id of a closed tab
Returns:
Return false
to prevent closing of a tab; otherwise, true
.
Example
tabbar.events.on("beforeClose", function(id){
// your logic here
return true;
});
Related sample: Tabbar. Events