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

13 lines
457 B
Handlebars
Raw Normal View History

2018-12-08 20:54:19 +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|}}
2018-12-08 20:54:19 +00:00
<option value={{read-path item optionValuePath}} selected={{is-equal item selection}}>
2016-07-07 18:54:16 -07:00
{{read-path item optionLabelPath}}
</option>
2016-07-07 18:54:16 -07:00
{{/each}}
</select>