Check documentation for the latest version 6.0 of dhtmlxSuite moveTab DHTMLX Docs

moveTab

moves the specified tab to the specified position

void moveTab(string|number id,number index);

Parameters

idstring|numbertab id
indexnumberthe new tab position

Example

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