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-19 15:51:08 -04:00
isFocused=isFocused
isExpanded=isExpanded
highlightedSelection=highlightedSelection
onClickSelectionItem=(action "onClickSelectionItem")
computedContent=headerComputedContent
onToggle=(action "onToggle")
2017-10-19 15:51:08 -04:00
options=headerComponentOptions
}}
{{component filterComponent
icon=filterIcon
placeholder=filterPlaceholder
filter=filter
hasSelection=hasSelection
isLoading=isLoading
2017-11-09 13:57:53 -05:00
shouldDisplayFilter=shouldDisplayFilter
isFocused=isFocused
onFilterComputedContent=(action "onFilterComputedContent")
2017-10-19 15:51:08 -04:00
}}
{{/component}}
2017-10-19 15:51:08 -04:00
<div class="select-kit-body">
2017-11-09 13:57:53 -05:00
{{#if renderedBodyOnce}}
{{#unless isLoading}}
2017-10-19 15:51:08 -04:00
{{component collectionComponent
collectionHeaderComputedContent=collectionHeaderComputedContent
hasSelection=hasSelection
noneRowComputedContent=noneRowComputedContent
createRowComputedContent=createRowComputedContent
collectionComputedContent=collectionComputedContent
2017-10-19 15:51:08 -04:00
rowComponent=rowComponent
noneRowComponent=noneRowComponent
createRowComponent=createRowComponent
templateForRow=templateForRow
templateForNoneRow=templateForNoneRow
templateForCreateRow=templateForCreateRow
onClickRow=(action "onClickRow")
onMouseoverRow=(action "onMouseoverRow")
highlighted=highlighted
2017-10-19 15:51:08 -04:00
computedValue=computedValue
rowComponentOptions=rowComponentOptions
noContentRow=noContentRow
validationMessage=validationMessage
2017-10-19 15:51:08 -04:00
}}
{{/unless}}
2017-10-19 15:51:08 -04:00
{{/if}}
</div>
<div class="select-kit-wrapper"></div>