756 B
756 B
editItem
Edits a item from the radio
Parameters:
numberThe index which should be editedstringThe new item namenumberthe new x positionnumberthe new y positionnumber|colorthe new item background color - optionalnumber|colorThe new item text color - optionalanyNew additional information - optional
Returns:
objectThe object in use
Usage:
- Creates a default radio with 3 entries and changes the second one.
local mainFrame = basalt.createFrame()
local aRadio = mainFrame:addRadio()
aRadio:addItem("1. Entry",5,2)
aRadio:addItem("2. Entry",5,4,colors.yellow)
aRadio:addItem("3. Entry",5,6,colors.yellow,colors.green)
aRadio:editItem(2, "Still 2. Entry", 5, 4, colors.red)