Skip to content

CheckboxDropdown

R41z0r edited this page Jun 13, 2026 · 2 revisions

Contents

CheckboxDropdown combines a boolean setting with one related single-choice dropdown in the same row.

Field Type Description
key string Boolean DB key.
dropdownKey / dropdownVar string Related dropdown DB key.
dropdownText string Dropdown label.
dropdownList / dropdownOptions table Dropdown choices.
dropdownOrder table Dropdown order.
dropdownDefault any Dropdown default value.
dropdownGet function Explicit dropdown getter.
dropdownSet function Explicit dropdown setter.
app:RegisterControl("alerts.health", {
  id = "healthAlert",
  key = "healthAlertEnabled",
  type = "checkboxdropdown",
  label = "Health alert",
  dropdownKey = "healthAlertThreshold",
  dropdownText = "Threshold",
  dropdownList = {
    LOW = "Low",
    MEDIUM = "Medium",
    HIGH = "High",
  },
  dropdownOrder = { "LOW", "MEDIUM", "HIGH" },
  default = false,
  dropdownDefault = "MEDIUM",
})

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