Merge pull request #421 from jspaetzel/verbose_list_doc
Add list control to example of verbose syntax
This commit is contained in:
commit
e73f013af0
|
@ -193,15 +193,22 @@ If you want to use other Controls in a form specified using the above (verbose)
|
||||||
{% raw %}
|
{% raw %}
|
||||||
```yaml
|
```yaml
|
||||||
- trigger: ":form"
|
- trigger: ":form"
|
||||||
replace: "Hey {{form1.name}}, how are you?"
|
replace: "Hey {{form1.name}}, how are you? Do you like {{form1.fruit}}?"
|
||||||
vars:
|
vars:
|
||||||
- name: "form1"
|
- name: "form1"
|
||||||
type: form
|
type: form
|
||||||
params:
|
params:
|
||||||
layout: "Hey {{name}}, how are you?"
|
layout: "Name: {{name}} \nFruit: {{fruit}}"
|
||||||
fields:
|
fields:
|
||||||
name:
|
name:
|
||||||
multiline: true
|
multiline: true
|
||||||
|
fruit:
|
||||||
|
type: list # or `choice`
|
||||||
|
values:
|
||||||
|
- Apples
|
||||||
|
- Bananas
|
||||||
|
- Oranges
|
||||||
|
- Peaches
|
||||||
```
|
```
|
||||||
{% endraw %}
|
{% endraw %}
|
||||||
|
|
||||||
|
@ -209,4 +216,4 @@ Note that **the `fields` parameter content is specified as the `form_fields` par
|
||||||
|
|
||||||
### macOS remarks
|
### macOS remarks
|
||||||
|
|
||||||
For the expansion to take place on macOS, you have to release the submit keys (CTRL+Enter) after submitting the form.
|
For the expansion to take place on macOS, you have to release the submit keys (CTRL+Enter) after submitting the form.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user