Check documentation for the latest version of dhtmlxSuite moveTab DHTMLX Docs


moves the specified tab to the specified position

void moveTab(string|number id,number index);
idstring|numbertab id
indexnumberthe new tab position


var myTabbar = new dhtmlXTabBar("parentId");
myTabbar.addTab("a1", "Rage", null, null, true);
myTabbar.addTab("a2", "Motorhead");
myTabbar.moveTab("a1", 1); // new order -> "Motorhead", "Rage"

Change log

added in version 3.6

Back to top