Button
Buttons are used to trigger actions.
Playground
Use the switch to enable the sub button and edit its label.
Usage
You can create a Button by calling the AddButton method on a Groupbox.
Choose between positional arguments for quick calls or a configuration table for more customization.
Positional Arguments
| Arg Idx | Argument Description | Type | Default |
|---|---|---|---|
| 1 | Text of the button | string | nil |
| 2 | Callback function | function | nil |
Configuration Table
Prop
Type
Sub Button
You can also add a sub button to a button.