Ghost/ghost/admin/app/templates/components/power-select/trigger.hbs
2017-04-10 13:16:19 +02:00

14 lines
587 B
Handlebars

{{#if select.selected}}
{{#if selectedItemComponent}}
{{component selectedItemComponent option=(readonly select.selected) select=(readonly select)}}
{{else}}
<span class="ember-power-select-selected-item">{{yield select.selected select}}</span>
{{/if}}
{{#if (and allowClear (not select.disabled))}}
<span class="ember-power-select-clear-btn" onmousedown={{action "clear"}} ontouchstart={{action "clear"}}>&times;</span>
{{/if}}
{{else}}
{{component placeholderComponent placeholder=placeholder}}
{{/if}}
{{inline-svg "arrow-down-small"}}