-
Notifications
You must be signed in to change notification settings - Fork 0
Slider
A slider stores a numeric value in a bounded range.
| Field | Type | Description |
|---|---|---|
min |
number | Minimum value. |
max |
number | Maximum value. |
step |
number | Increment size. |
formatter |
function | Display formatter. |
suffix |
string | Suffix for display text. |
valueFormatter |
function | Alternate value formatter. |
app:RegisterControl("interface.bars", {
id = "barScale",
key = "barScale",
type = "slider",
label = "Scale",
min = 0.5,
max = 2,
step = 0.05,
default = 1,
})formatter = function(value)
return string.format("%.0f%%", (tonumber(value) or 1) * 100)
endWiki
• 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