Inputs
Inputs can be used to collect text user input.
Playground
Notification Sound ID
Usage
You can create an Input by calling the AddInput
method on a Groupbox.
Arguments
Arg Idx | Argument Description | Type | Default |
---|---|---|---|
1 | Index/ID of the option | string | nil |
2 | Input configuration table | table | nil |
Configuration Table
Prop
Type
Methods
You can use the following methods to interact with the textbox:
SetValue
Sets the input value.
Arg Idx | Argument Description | Type | Default |
---|---|---|---|
1 | The new value of the input | string | nil |
SetText
Updates the input's label text.
Arg Idx | Argument Description | Type | Default |
---|---|---|---|
1 | The new text of the input | string | nil |
SetDisabled
Enables or disables the input.
Arg Idx | Argument Description | Type | Default |
---|---|---|---|
1 | Whether to disable the input | boolean | nil |
SetVisible
Shows or hides the input.
Arg Idx | Argument Description | Type | Default |
---|---|---|---|
1 | Whether to show the input | boolean | nil |
OnChanged
Adds another callback function to the input. This is the recommended way to listen for changes in the input.
Arg Idx | Argument Description | Type | Default |
---|---|---|---|
1 | The callback function | function | nil |