mirror of
https://github.com/airstruck/luigi.git
synced 2026-03-14 05:36:51 -06:00
create "pseudo-widget" for option groups
This commit is contained in:
@@ -89,11 +89,12 @@ return { id = 'mainWindow',
|
||||
{ type = 'check', text = 'Vertical controls', id = 'flowToggle', },
|
||||
{ type = 'label', text = 'Some radio widgets' },
|
||||
{
|
||||
{ type = 'radio', text = 'One fish' },
|
||||
{ type = 'radio', text = 'Two fish' },
|
||||
{ type = 'radio', text = 'Red fish' },
|
||||
{ type = 'radio', text = 'Blue fish' },
|
||||
{ type = 'radio', group = 'fish', text = 'One fish' },
|
||||
{ type = 'radio', group = 'fish', text = 'Two fish' },
|
||||
{ type = 'radio', group = 'fish', text = 'Red fish' },
|
||||
{ type = 'radio', group = 'fish', text = 'Blue fish' },
|
||||
},
|
||||
{ type = 'label', id = 'fishStatus' },
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
@@ -96,6 +96,10 @@ layout.sans2:onPress(function()
|
||||
layout.stepper.font = false
|
||||
end)
|
||||
|
||||
layout.fish:onChange(function()
|
||||
layout.fishStatus.text = 'Selected: ' .. layout.fish.selected.text
|
||||
end)
|
||||
|
||||
-- show the main layout
|
||||
layout:show()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user