Skip to content
R41z0r edited this page Jun 13, 2026 · 2 revisions

Contents

A slider stores a numeric value in a bounded range.

Slider layout example

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)
end

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

Clone this wiki locally