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
highlightedSelection=highlightedSelection
onClickSelectionItem=(action "onClickSelectionItem")
computedContent=headerComputedContent
onToggle=(action "onToggle")
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
onFilterComputedContent=(action "onFilterComputedContent")
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}}
{{#unless isLoading}}
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
onClickRow=(action "onClickRow")
onMouseoverRow=(action "onMouseoverRow")
highlighted=highlighted
2017-10-20 03:51:08 +08:00
computedValue=computedValue
rowComponentOptions=rowComponentOptions
noContentRow=noContentRow
validationMessage=validationMessage
2017-10-20 03:51:08 +08:00
}}
{{/unless}}
2017-10-20 03:51:08 +08:00
{{/if}}
</div>
<div class="select-kit-wrapper"></div>