2020-02-03 08:22:14 -05:00
|
|
|
{{#if selectKit.options.showFullTitle}}
|
2021-01-20 09:50:53 -05:00
|
|
|
<div role="textbox" lang={{lang}} {{action "onSelectedNameClick"}} tabindex="0" title={{title}} data-value={{value}} data-name={{name}} class="select-kit-selected-name selected-name choice">
|
2020-05-15 11:36:00 -04:00
|
|
|
{{#if item.icon}}
|
|
|
|
{{d-icon item.icon}}
|
|
|
|
{{/if}}
|
2020-02-03 08:22:14 -05:00
|
|
|
|
2020-05-15 11:36:00 -04:00
|
|
|
<span class="name">
|
|
|
|
{{label}}
|
|
|
|
</span>
|
2020-02-03 08:22:14 -05:00
|
|
|
|
2020-05-15 11:36:00 -04:00
|
|
|
{{#if selectKit.options.clearOnClick}}
|
|
|
|
{{d-icon "times"}}
|
|
|
|
{{else}}
|
|
|
|
{{#if shouldDisplayClearableButton}}
|
|
|
|
{{d-button
|
|
|
|
class="btn-clear"
|
|
|
|
icon="times"
|
|
|
|
action=selectKit.deselect
|
|
|
|
actionParam=item
|
|
|
|
}}
|
|
|
|
{{/if}}
|
2020-02-03 08:22:14 -05:00
|
|
|
{{/if}}
|
2020-05-15 11:36:00 -04:00
|
|
|
</div>
|
2020-02-03 08:22:14 -05:00
|
|
|
{{else}}
|
|
|
|
{{#if item.icon}}
|
2021-01-20 09:50:53 -05:00
|
|
|
<div role="textbox" lang={{lang}} tabindex="0" class="select-kit-selected-name selected-name choice">
|
2020-05-15 11:36:00 -04:00
|
|
|
{{d-icon item.icon}}
|
|
|
|
</div>
|
2020-02-03 08:22:14 -05:00
|
|
|
{{/if}}
|
|
|
|
{{/if}}
|