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

51 lines
1.6 KiB
Handlebars
Raw Normal View History

2017-10-20 03:51:08 +08:00
{{component headerComponent
tabindex=tabindex
shouldDisplayFilter=shouldDisplayFilter
2017-10-20 03:51:08 +08:00
isFocused=isFocused
isExpanded=isExpanded
computedContent=headerComputedContent
deselect=(action "deselect")
toggle=(action "toggle")
filterComputedContent=(action "filterComputedContent")
clearSelection=(action "clearSelection")
2017-10-20 03:51:08 +08:00
options=headerComponentOptions
}}
<div class="select-kit-body">
2017-10-20 03:51:08 +08:00
{{component filterComponent
filter=filter
2017-10-20 03:51:08 +08:00
icon=filterIcon
2017-11-10 02:57:53 +08:00
shouldDisplayFilter=shouldDisplayFilter
2017-10-20 03:51:08 +08:00
placeholder=(i18n filterPlaceholder)
isFocused=isFocused
filterComputedContent=(action "filterComputedContent")
2017-10-20 03:51:08 +08:00
}}
2017-11-10 02:57:53 +08:00
{{#if renderedBodyOnce}}
2017-10-20 03:51:08 +08:00
{{component collectionComponent
collectionHeader=collectionHeader
hasSelection=hasSelection
noneRowComputedContent=noneRowComputedContent
createRowComputedContent=createRowComputedContent
filteredComputedContent=filteredComputedContent
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
noContentLabel=noContentLabel
highlightedValue=highlightedValue
computedValue=computedValue
shouldDisplayNoContentRow=shouldDisplayNoContentRow
2017-10-20 03:51:08 +08:00
rowComponentOptions=rowComponentOptions
}}
{{/if}}
</div>
<div class="select-kit-wrapper"></div>