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

51 lines
1.5 KiB
Handlebars
Raw Normal View History

{{#component headerComponent
tabindex=tabindex
2017-10-20 03:51:08 +08:00
isFocused=isFocused
isExpanded=isExpanded
computedContent=headerComputedContent
deselect=(action "deselect")
toggle=(action "toggle")
clearSelection=(action "clearSelection")
2017-10-20 03:51:08 +08:00
options=headerComponentOptions
}}
{{component filterComponent
icon=filterIcon
placeholder=filterPlaceholder
filter=filter
hasSelection=hasSelection
isLoading=isLoading
2017-11-10 02:57:53 +08:00
shouldDisplayFilter=shouldDisplayFilter
isFocused=isFocused
filterComputedContent=(action "filterComputedContent")
2017-10-20 03:51:08 +08:00
}}
{{/component}}
2017-10-20 03:51:08 +08:00
<div class="select-kit-body">
2017-11-10 02:57:53 +08:00
{{#if renderedBodyOnce}}
2017-10-20 03:51:08 +08:00
{{component collectionComponent
collectionHeaderComputedContent=collectionHeaderComputedContent
hasSelection=hasSelection
noneRowComputedContent=noneRowComputedContent
createRowComputedContent=createRowComputedContent
collectionComputedContent=collectionComputedContent
2017-10-20 03:51:08 +08:00
rowComponent=rowComponent
noneRowComponent=noneRowComponent
createRowComponent=createRowComponent
templateForRow=templateForRow
templateForNoneRow=templateForNoneRow
templateForCreateRow=templateForCreateRow
clearSelection=(action "clearSelection")
select=(action "select")
highlight=(action "highlight")
create=(action "create")
2017-10-20 03:51:08 +08:00
highlightedValue=highlightedValue
computedValue=computedValue
rowComponentOptions=rowComponentOptions
noContentRow=noContentRow
maxContentRow=maxContentRow
2017-10-20 03:51:08 +08:00
}}
{{/if}}
</div>
<div class="select-kit-wrapper"></div>