change

fires on changing the active tab

void change(string activeId,string prevId){ ... };

Parameters

activeIdstringthe id of a newly active tab
prevIdstringthe id of a previously active tab

Example

tabbar.events.on("Change", function(activeId, prevId){
    console.log(activeId);
});

Related samples

Back to top