2020-02-03 08:22:14 -05:00
|
|
|
{{#if selectKit.options.showFullTitle}}
|
2021-02-15 12:22:10 -05:00
|
|
|
<div tabindex="0" role="button" lang={{lang}} {{action "onSelectedNameClick"}} 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
|
2021-01-21 21:58:34 -05:00
|
|
|
ariaLabel="clear_input"
|
2020-05-15 11:36:00 -04:00
|
|
|
}}
|
|
|
|
{{/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-28 13:42:59 -05:00
|
|
|
<div role="textbox" lang={{lang}} 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}}
|