ComboItem:move(index)method
Moves the ComboItem to a new position in the Combobox.
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("ComboItem:move() sample", 316, 246)
local combo = ui.Combobox(win, {"Item 1", "Item 2", "Item 3", "Item 4", "Item 5"}, 10, 10)
-- Move first item to position 3
combo.items[1]:move(3)
await win:showasync()