31 lines
842 B
Handlebars
31 lines
842 B
Handlebars
{{#if selectKit.options.showFullTitle}}
|
|
<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">
|
|
{{#if item.icon}}
|
|
{{d-icon item.icon}}
|
|
{{/if}}
|
|
|
|
<span class="name">
|
|
{{label}}
|
|
</span>
|
|
|
|
{{#if selectKit.options.clearOnClick}}
|
|
{{d-icon "times"}}
|
|
{{else}}
|
|
{{#if shouldDisplayClearableButton}}
|
|
{{d-button
|
|
class="btn-clear"
|
|
icon="times"
|
|
action=selectKit.deselect
|
|
actionParam=item
|
|
}}
|
|
{{/if}}
|
|
{{/if}}
|
|
</div>
|
|
{{else}}
|
|
{{#if item.icon}}
|
|
<div role="textbox" lang={{lang}} tabindex="0" class="select-kit-selected-name selected-name choice">
|
|
{{d-icon item.icon}}
|
|
</div>
|
|
{{/if}}
|
|
{{/if}}
|