Skip to content

docs: add documentation for custom attribute types (issue #118)#446

Merged
kevinchappell merged 2 commits into
mainfrom
docs/issue-118-custom-attribute-types
May 15, 2026
Merged

docs: add documentation for custom attribute types (issue #118)#446
kevinchappell merged 2 commits into
mainfrom
docs/issue-118-custom-attribute-types

Conversation

@kevinchappell
Copy link
Copy Markdown
Collaborator

Document how to add custom attribute types (selects, radios, checkboxes) to the attribute pane programmatically. Covers:

  • Value type to input type mapping (string, number, boolean, array)
  • Select dropdown attributes via control definition or config.attrs
  • Programmatic attribute addition via EditPanel.addAttribute()
  • Controlling attribute visibility with disabledAttrs/lockedAttrs
  • Complete example with multiple attribute types

resolves #118

Document how to add custom attribute types (selects, radios, checkboxes)
to the attribute pane programmatically. Covers:
- Value type to input type mapping (string, number, boolean, array)
- Select dropdown attributes via control definition or config.attrs
- Programmatic attribute addition via EditPanel.addAttribute()
- Controlling attribute visibility with disabledAttrs/lockedAttrs
- Complete example with multiple attribute types
Copilot AI review requested due to automatic review settings May 15, 2026 22:55
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new documentation page under docs/controls/ describing how to configure custom attribute types (text, number, boolean, select dropdowns) in the editor's attribute pane, including programmatic addition and visibility controls. Resolves issue #118.

Changes:

  • New doc page docs/controls/custom-attribute-types.md covering value-type → input mapping, select dropdown attributes via control definition or config.fields[*].attrs, programmatic EditPanel.addAttribute() usage, and disabledAttrs/lockedAttrs / panel-level visibility config.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread docs/controls/custom-attribute-types.md Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@kevinchappell kevinchappell merged commit f0db688 into main May 15, 2026
2 checks passed
@kevinchappell
Copy link
Copy Markdown
Collaborator Author

🎉 This PR is included in version 5.0.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Need a way to add attribute types

2 participants