beforeClose

fires before closing a tab in Tabbar

boolean beforeClose(string id){ ... };

Parameters

idstringthe id of a closed tab

Returns

booleanfalse - to prevent closing of a tab, otherwise true

Example

tabbar.events.on("BeforeClose", function(id){
    // your logic here
    return true;
});

Related samples

Back to top