How to get the active tab in Trigger.io -
i'm working on openforge browser addon. possible current/active tab object?
the tabbar component doesn't have button.getactive(success, error)
function, way determine store active tab in javascript variable when tab button tapped.
example:
forge.tabbar.addbutton({ icon: "search.png", text: "search", index: 0 }, function (button) { // action perform when button clicked button.onpressed.addlistener(function () { alert("search"); // store active button variable active_tab = 'search'; }); });
Comments
Post a Comment