| source | | title | "Watched field" |
|---|
| description | "Name of the field whose value supplies the options." |
|---|
| type | "string" |
|---|
| examples | | "countries" |
| "users" |
| "categories" |
|
|---|
|
|---|
| title | | title | "Title template" |
|---|
| description | "Display label for each option. Use {{item.property}} to reference fields of the current item." |
|---|
| type | "string" |
|---|
| examples | | "{{item.name}}" |
| "{{item.name}} ({{item.email}})" |
|
|---|
|
|---|
| value | | title | "Value template" |
|---|
| description | "Underlying value for each option. Use {{item.property}} to reference fields of the current item." |
|---|
| type | "string" |
|---|
| examples | | "{{item.id}}" |
| "user:{{item.id}}" |
|
|---|
|
|---|
| filter | | title | "Filter expression" |
|---|
| description | "Only keep items where this template evaluates to a truthy value." |
|---|
| type | "string" |
|---|
| examples | | "{{item.active}}" |
| "{{item.status === 'published'}}" |
|
|---|
|
|---|
| slice | | title | "Slice" |
|---|
| description | "Take a sub-range of items, like Array.prototype.slice. One value = from index to end; two values = start and end." |
|---|
| type | "array" |
|---|
| items | |
|---|
| minItems | 1 |
|---|
| maxItems | 2 |
|---|
| examples | |
|---|
|
|---|
| sort | | title | "Sort" |
|---|
| description | "Sort options by value. Titles follow their values." |
|---|
| type | "string" |
|---|
| enum | |
|---|
| default | "asc" |
|---|
| options | |
|---|
|
|---|