Update Docs: Widgets “list” (#5927)

This commit is contained in:
Quentin Madura 2021-10-25 12:20:36 +02:00 committed by GitHub
parent 6a42f98b51
commit cb856ae014
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,7 +23,6 @@ The list widget allows you to create a repeatable item in the UI which saves as
* `max`: maximum number of items in the list
* `min`: minimum number of items in the list
* `add_to_top`: when `true`, new entries will be added to the top of the list
* **Example** (`field`/`fields` not specified):
```yaml
@ -80,10 +79,10 @@ The list widget allows you to create a repeatable item in the UI which saves as
- { label: "Source", name: "src", widget: "string" }
- { label: "Alt Text", name: "alt", widget: "string" }
default:
- { src: "/img/tenis.jpg", alt: "Tenis" }
- { src: "/img/tennis.jpg", alt: "Tennis" }
- { src: "/img/footbar.jpg", alt: "Football" }
```
* **Example** (`collapsed` marked `false`):
```yaml
@ -126,4 +125,4 @@ The list widget allows you to create a repeatable item in the UI which saves as
name: "tags"
widget: "list"
add_to_top: true
```
```