TabItem:move(index)method

Moves the TabItem to a new position in the Tab.

Parameters

index

A number representing the new position index for the item (1-based).

Return value

This method returns no value.

Example

--! luart-extensions import ui -- create a simple Window local win = ui.Window("TabItem:move() sample", 316, 246) local tab = ui.Tab(win, {"Tab 1", "Tab 2", "Tab 3", "Tab 4", "Tab 5"}, 10, 10) -- Move first tab to position 3 tab.items[1]:move(3) await win:showasync()