-
Notifications
You must be signed in to change notification settings - Fork 0
ColorPicker
A ColorPicker stores one { r, g, b, a } color table.
| Field | Type | Description |
|---|---|---|
hasOpacity |
boolean | Show alpha channel. |
colorizeLabel |
boolean | Tint label with current color. |
callback |
function | Called after color changes. |
default |
table | Default color. |
app:RegisterControl("bars.colors", {
id = "barColor",
key = "barColor",
type = "colorpicker",
label = "Bar color",
hasOpacity = true,
default = { r = 0.9, g = 0.2, b = 0.2, a = 1 },
callback = function(color)
MyAddon.ApplyBarColor(color)
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