1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-23 07:09:43 +02:00
documize/gui/app/templates/components/ui-select.hbs

13 lines
460 B
Handlebars
Raw Normal View History

2017-12-08 17:42:54 +00:00
<select {{action 'change' on='change'}} class="form-control {{cssClass}}" readonly={{readonly}}>
2016-07-07 18:54:16 -07:00
{{#if prompt}}
<option disabled selected={{is-not selection}}>
{{prompt}}
</option>
{{/if}}
{{#each content key="@identity" as |item|}}
<option value="{{read-path item optionValuePath}}" selected={{is-equal item selection}}>
{{read-path item optionLabelPath}}
</option>
{{/each}}
</select>