0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/core/client/app/templates/components/gh-select-native.hbs
2015-11-30 12:23:47 -06:00

14 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>