Add select selector for blueprints (#16383)

Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
Matteo Agnoletto 2021-02-08 14:03:34 +01:00 committed by GitHub
parent 2289eb85f7
commit d8332c545e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 24 additions and 0 deletions

View File

@ -22,6 +22,7 @@ The following selectors are currently available:
- [Entity selector](#entity-selector)
- [Number selector](#number-selector)
- [Object selector](#object-selector)
- [Select selector](#select-selector)
- [Target selector](#target-selector)
- [Text selector](#text-selector)
- [Time selector](#time-selector)
@ -381,6 +382,29 @@ This selector does not have any other options; therefore, it only has its key.
object:
```
## Select selector
The select selector shows a list of available options from which the user can choose. The value of the input contains the value of the selected option. Only a single option can be selected at a time.
![Screenshot of a select selector](/images/blueprints/selector-select.png)
The selector requires a list of options that the user can choose from.
```yaml
select:
options:
- Red
- Green
- Blue
```
{% configuration select %}
options:
description: List of options that the user can choose from.
type: list
required: true
{% endconfiguration %}
## Target selector
The target selector is a rather special selector, allowing the user to selector

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB