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

50 lines
1.5 KiB
Handlebars
Raw Normal View History

2017-10-19 15:51:08 -04:00
{{component headerComponent
tabindex=tabindex
2017-10-19 15:51:08 -04:00
isFocused=isFocused
isExpanded=isExpanded
computedContent=headerComputedContent
2017-10-19 15:51:08 -04:00
onDeselect=(action "onDeselect")
onToggle=(action "onToggle")
onFilter=(action "onFilter")
onClear=(action "onClear")
2017-10-19 15:51:08 -04:00
options=headerComponentOptions
shouldDisplayFilter=shouldDisplayFilter
2017-10-19 15:51:08 -04:00
}}
<div class="select-kit-body">
2017-10-19 15:51:08 -04:00
{{component filterComponent
onFilter=(action "onFilter")
2017-10-19 15:51:08 -04:00
icon=filterIcon
2017-11-09 13:57:53 -05:00
shouldDisplayFilter=shouldDisplayFilter
2017-10-19 15:51:08 -04:00
isFocused=isFocused
placeholder=(i18n filterPlaceholder)
2017-11-09 13:57:53 -05:00
filter=filter
2017-10-19 15:51:08 -04:00
}}
2017-11-09 13:57:53 -05:00
{{#if renderedBodyOnce}}
2017-10-19 15:51:08 -04:00
{{component collectionComponent
hasSelection=hasSelection
noneRowComputedContent=noneRowComputedContent
createRowComputedContent=createRowComputedContent
filteredComputedContent=filteredComputedContent
2017-10-19 15:51:08 -04:00
rowComponent=rowComponent
noneRowComponent=noneRowComponent
createRowComponent=createRowComponent
templateForRow=templateForRow
templateForNoneRow=templateForNoneRow
templateForCreateRow=templateForCreateRow
onClear=(action "onClear")
2017-10-19 15:51:08 -04:00
onSelect=(action "onSelect")
onHighlight=(action "onHighlight")
onCreate=(action "onCreate")
2017-10-19 15:51:08 -04:00
noContentLabel=noContentLabel
highlightedValue=highlightedValue
computedValue=computedValue
shouldDisplayNoContentRow=shouldDisplayNoContentRow
2017-10-19 15:51:08 -04:00
rowComponentOptions=rowComponentOptions
}}
{{/if}}
</div>
<div class="select-kit-wrapper"></div>