Difference between revisions of "UI.Combobox"
From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2023.1<br/> '''Class:''' UI<br/> === Description === Creates Combobox widgets. The widget can be a '''Combobox''' or a '''Combobo...") |
|||
(One intermediate revision by the same user not shown) | |||
Line 9: | Line 9: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | === | + | === Examples === |
'''A Combobox''' | '''A Combobox''' | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
Line 46: | Line 46: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | {{ | + | {{UI}} |
Latest revision as of 07:18, 17 October 2023
Available since: Gideros 2023.1
Class: UI
Description
Creates Combobox widgets. The widget can be a Combobox or a ComboboxButton.
UI.Combobox.new()
Examples
A Combobox
local mydata = {"a", 1, 2, "b", 3, "c"}
local gui = UI.Combobox.new()
gui:setDimensions(64, 64)
gui:setPosition(50, 50)
gui:setData(mydata)
gui:setCurrent(2)
function gui:onWidgetChange(w)
print(w.index)
end
local screen=UI.Screen.new() -- needed to add the calendar
screen:ui(gui)
A ComboboxButton
local mydata = {"a", 1, 2, "b", 3, "c"}
local gui = UI.ComboboxButton.new()
gui:setDimensions(64, 64)
gui:setPosition(50, 50)
gui:setData(mydata)
gui:setCurrent(2)
function gui:onWidgetChange(w)
print(w.index)
end
local screen=UI.Screen.new() -- needed to add the calendar
screen:ui(gui)
- UI.Accordion
- UI.Animation
- UI.Bar
- UI.Behavior
- UI.Border
- UI.BreadCrumbs
- UI.Builder
- UI.Button
- UI.Calendar
- UI.Checkbox
- UI.Combobox
- UI.ImageText
- UI.Keyboard
- UI.Label
- UI.Panel
- UI.Progress
- UI.Slider
- UI.Spinner
- UI.Splitpane
- UI.TabbedPane
- UI.Table
- UI.TextField
- UI.TimePicker
- UI.Toolbox
- UI.Tree
- UI.Viewport
- UI.WeekSchedule