Plugins tab order

saroos1

Member
May 25, 2018
718
0
16
Is there any way to manage the plugin tabs order?

I have made a plugin to show an iframe and now it's showed in "the middle" of the rest of the tabs, is it possible to show the tab like the last one?

init.js
Code:
var frame = null;

plugin.addNewTabWithURL = function( tabName, tabURL )
{
frame = document.createElement("IFRAME");
frame.name = "new_url";

frame.src = tabURL;
frame.id = "new_url";
frame.style.width = "100%";
frame.style.height = "100%";
frame.style.border = "0";
this.attachPageToTabs(frame,tabName);
}

theTabs.onShow = function(id)
{
if(id=="new_url")
{
frame.src = "http://www.google.com";
}
}

plugin.addNewTabWithURL( "My Tab", "http://www.google.com/" );