discourse/app/assets/javascripts/select-kit/templates/components/single-select.hbs
2018-04-05 16:45:19 +02:00

49 lines
1.5 KiB
Handlebars

{{component headerComponent
caretIcon=caretIcon
tabindex=tabindex
isFocused=isFocused
isExpanded=isExpanded
computedContent=headerComputedContent
onToggle=(action "onToggle")
onClearSelection=(action "onClearSelection")
options=headerComponentOptions
}}
<div class="select-kit-body">
{{component filterComponent
filter=filter
isLoading=isLoading
icon=filterIcon
hasSelection=hasSelection
shouldDisplayFilter=shouldDisplayFilter
placeholder=filterPlaceholder
isFocused=isFocused
onFilterComputedContent=(action "onFilterComputedContent")
}}
{{#if renderedBodyOnce}}
{{component collectionComponent
collectionHeaderComputedContent=collectionHeaderComputedContent
hasSelection=hasSelection
noneRowComputedContent=noneRowComputedContent
createRowComputedContent=createRowComputedContent
collectionComputedContent=collectionComputedContent
rowComponent=rowComponent
noneRowComponent=noneRowComponent
createRowComponent=createRowComponent
templateForRow=templateForRow
templateForNoneRow=templateForNoneRow
templateForCreateRow=templateForCreateRow
onClickRow=(action "onClickRow")
onMouseoverRow=(action "onMouseoverRow")
highlighted=highlighted
computedValue=computedValue
rowComponentOptions=rowComponentOptions
noContentRow=noContentRow
validationMessage=validationMessage
}}
{{/if}}
</div>
<div class="select-kit-wrapper"></div>