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

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -