Dialog Module (dialog)
By default, dialog interfaces are powered by the webview engine.
However, on TrollStore builds or devices running iOS 16 and later, the dialog module switches to the XUI engine by default.
Use dialog.engine = "webview" to force the webview engine.
Use dialog.engine = "xui" to force the XUI engine instead.
- ! Create a dialog object (dialog)
- Set dialog config file name (:set_config)
- Set dialog auto-dismiss timeout (:set_timeout)
- Set dialog title (:set_title)
- Set dialog size (:set_size)
- Set dialog position and size (:set_frame)
- Set dialog corner radius (:set_corner_radius)
- Add a text label (:add_label)
- Add a text input (:add_input)
- Add an image (:add_image)
- Add a switch (:add_switch)
- Add a picker (:add_picker)
- Add a radio group (:add_radio)
- Add a checkbox group (:add_checkbox)
- Add a range (number selector) (:add_range)
- ! Present dialog and return user selection (:show)
- ! Load dialog configuration without presenting (:load)