discourse/app/assets/javascripts/select-kit/templates/components/select-kit.hbs

53 lines
1.6 KiB
Handlebars

{{component headerComponent
tabindex=tabindex
shouldDisplayFilter=shouldDisplayFilter
isFocused=isFocused
isExpanded=isExpanded
computedContent=headerComputedContent
deselect=(action "deselect")
toggle=(action "toggle")
isLoading=isLoading
filterComputedContent=(action "filterComputedContent")
clearSelection=(action "clearSelection")
options=headerComponentOptions
}}
<div class="select-kit-body">
{{component filterComponent
filter=filter
isLoading=isLoading
icon=filterIcon
shouldDisplayFilter=shouldDisplayFilter
placeholder=(i18n filterPlaceholder)
isFocused=isFocused
filterComputedContent=(action "filterComputedContent")
}}
{{#if renderedBodyOnce}}
{{component collectionComponent
collectionHeaderComputedContent=collectionHeaderComputedContent
hasSelection=hasSelection
noneRowComputedContent=noneRowComputedContent
createRowComputedContent=createRowComputedContent
filteredComputedContent=filteredComputedContent
rowComponent=rowComponent
noneRowComponent=noneRowComponent
createRowComponent=createRowComponent
templateForRow=templateForRow
templateForNoneRow=templateForNoneRow
templateForCreateRow=templateForCreateRow
clearSelection=(action "clearSelection")
select=(action "select")
highlight=(action "highlight")
create=(action "create")
noContentLabel=noContentLabel
highlightedValue=highlightedValue
computedValue=computedValue
shouldDisplayNoContentRow=shouldDisplayNoContentRow
rowComponentOptions=rowComponentOptions
}}
{{/if}}
</div>
<div class="select-kit-wrapper"></div>