Ghost/ghost/admin/app/templates/components/gh-select-native.hbs
2015-11-30 12:23:47 -06:00

15 lines
390 B
Handlebars

<select {{action "change" on="change"}}>
{{#if prompt}}
<option disabled selected={{is-not selection}}>
{{prompt}}
</option>
{{/if}}
{{#each content as |item|}}
<option value="{{get item optionValuePath}}"
selected={{is-equal item selection}}>
{{get item optionLabelPath}}
</option>
{{/each}}
</select>