-
Notifications
You must be signed in to change notification settings - Fork 0
Button
A button runs an action. It normally does not track customized state.
| Field | Type | Description |
|---|---|---|
label |
string | Row label. |
buttonText |
string | Text shown on the button. |
onClick / setValue
|
function | Click handler. |
description |
string | Action description. |
app:RegisterControl("profiles.export", {
id = "exportProfile",
type = "button",
label = "Export profile",
buttonText = "Export",
description = "Create an export string for the current profile.",
onClick = function()
MyAddon.ShowExportPopup()
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