feat: singleton array list widget (#336)
This commit is contained in:
committed by
GitHub
parent
a60d53b4ec
commit
c5e94ed16d
@ -406,6 +406,41 @@ fields: [
|
||||
|
||||
</CodeTabs>
|
||||
|
||||
### Singleton List (List of Strings)
|
||||
|
||||
<CodeTabs>
|
||||
```yaml
|
||||
name: sections
|
||||
label: Home Section
|
||||
widget: list
|
||||
default:
|
||||
- 'tag-1'
|
||||
- 'tag-2'
|
||||
fields:
|
||||
- name: tag
|
||||
label: Tag
|
||||
widget: string
|
||||
```
|
||||
|
||||
```js
|
||||
name: 'sections',
|
||||
label: 'Home Section',
|
||||
widget: 'list',
|
||||
default: [
|
||||
'tag-1',
|
||||
'tag-2'
|
||||
]
|
||||
fields: [
|
||||
{
|
||||
name: 'tag',
|
||||
label: 'Tag',
|
||||
widget: 'string',
|
||||
},
|
||||
]
|
||||
```
|
||||
|
||||
</CodeTabs>
|
||||
|
||||
### Typed List
|
||||
|
||||
<CodeTabs>
|
||||
|
Reference in New Issue
Block a user