payload
payload copied to clipboard
feat: allow for select groups in config
Description
This PR extends the functionality of the select field, allowing you to group items together. You can also mix and match option types now.
{
name: 'presidents',
type: 'select',
options: [
{
label: '1700s',
options: [
{
label: 'George Washington',
value: '1',
},
{
label: 'John Adams',
value: '2',
},
],
},
{
label: '1800s',
options: [
{
label: 'Thomas Jefferson',
value: '3',
},
{
label: 'James Madison',
value: '4',
},
],
},
],
},
- [ ] I have read and understand the CONTRIBUTING.md document in this repository.
Type of change
- [x] New feature (non-breaking change which adds functionality)
Checklist:
- [ ] I have added tests that prove my fix is effective or that my feature works
- [ ] Existing test suite passes locally with my changes
- [ ] I have made corresponding changes to the documentation