Skip to content

InfoPage

github-actions[bot] edited this page Jun 13, 2026 · 3 revisions

Contents

Info pages render static/help content instead of settings controls. Use layout = "info".

InfoPage dashboard showcase example

{
  title = "Section title",
  entries = {
    -- entries
  },
}
Type Fields Description
text text Paragraph or bullet text.
command commands, usage, desc, note Slash command display.
button text, width, height, onClick, inline Action button.
expandable id, title, rightText, entries Collapsible text/details section.
image image / texture, width, height Static image.
spacer height Vertical spacing.

Set buttonLayout = "wrap" on a content block to render consecutive buttons horizontally and wrap them onto the next row when they no longer fit. Optional block fields are buttonWidth, buttonHeight, buttonGap, buttonRowGap, and buttonAlign = "left" | "center" | "right". A single button can opt in with inline = true.

Use type = "expandable" for changelogs, FAQs, and dense help sections.

{
  type = "expandable",
  id = "version-1.1.0",
  title = "Version 1.1.0",
  rightText = "2026-06-13",
  defaultExpanded = true,
  entries = {
    { type = "text", text = "|cffffd100Added|r" },
    { type = "text", text = "- Expandable changelog sections." },
  },
}

See Expandable for the full field list.

app:RegisterPage({
  id = "help.quick-reference",
  category = "help",
  title = "Quick Reference",
  layout = "info",
  content = {
    {
      title = "Slash Commands",
      buttonLayout = "wrap",
      buttonAlign = "center",
      buttonWidth = 180,
      buttonGap = 12,
      entries = {
        { type = "text", text = "Use these commands in chat." },
        { type = "command", commands = { "/myaddon" }, desc = "Open settings." },
        { type = "spacer", height = 8 },
        {
          type = "button",
          text = "Copy URL",
          width = 180,
          onClick = function()
            MyAddon.ShowCopyURLPopup()
          end,
        },
        {
          type = "button",
          text = "Open Discord",
          onClick = function()
            MyAddon.OpenDiscord()
          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