-
Notifications
You must be signed in to change notification settings - Fork 0
Input
Input controls store text or numbers.
| Field | Type | Description |
|---|---|---|
placeholder / placeholderText
|
string | Empty input hint. |
numeric |
boolean | Parse as number. |
min, max
|
number | Numeric bounds. |
clampToRange |
boolean | Clamp numeric input. |
maxChars |
number | Text length cap. |
readOnly |
boolean | Prevent editing. |
inputWidth |
number | Input width. |
multiline |
boolean | Use multiline edit box. |
multilineHeight |
number | Multiline height. |
app:RegisterControl("profiles.names", {
id = "profileName",
key = "profileName",
type = "input",
label = "Profile name",
placeholder = "Name",
maxChars = 32,
default = "",
})app:RegisterControl("timers.pull", {
id = "pullSeconds",
key = "pullSeconds",
type = "input",
label = "Pull timer",
numeric = true,
min = 3,
max = 60,
clampToRange = true,
default = 10,
})app:RegisterControl("macros.body", {
id = "macroBody",
key = "macroBody",
type = "input",
label = "Macro body",
multiline = true,
multilineHeight = 120,
inputWidth = 420,
default = "",
})Wiki
• Home
• Architecture
• Vendoring
• Quick Start
• Field Glossary
• Troubleshooting
• Validation
Reference
⚬ Config API
⚬ UI API
⚬ Elements
⚬ Examples
Elements
Structure
• Category
• Page
• Group
• Dashboard
• InfoPage
• Custom
Controls
• Toggle
• CheckboxDropdown
• Dropdown
• MultiDropdown
• SoundDropdown
• Input
• Slider
• Button
Advanced
• ColorPicker
• ColorPalette
• ColorOverrides
• ReorderList
• Expandable
• Notes
Examples
Start
• Minimal Addon
• Complete Settings Center
• Wrapper Bridge Pattern
Data and Behavior
• Dependent Controls
• Nested Database Values
• Dynamic Dropdowns
• Runtime Refresh
• Search and New Badges
• Custom Hosted Editors
Polish
• Support Links
• Theme Colors
• Theme Borders