1
0
Fork 0
mirror of https://github.com/TryGhost/Ghost-Admin.git synced 2023-12-14 02:33:04 +01:00
Ghost-Admin/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>