Module ui.widget.radiobutton
Widget that shows a radiobutton checked (◉
) or unchecked (◯
)
or nothing of the same size.
Example:
local RadioButton = require("ui/widget/radiobutton") local parent_widget = FrameContainer:new{} table.insert(parent_widget, RadioButton:new{ checkable = false, -- shows nothing when false, defaults to true checked = function() end, -- whether the box is checked }) UIManager:show(parent_widget)