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

49 lines
1.5 KiB
Handlebars
Raw Normal View History

2017-10-19 15:51:08 -04:00
{{component headerComponent
caretIcon=caretIcon
tabindex=tabindex
2017-10-19 15:51:08 -04:00
isFocused=isFocused
isExpanded=isExpanded
computedContent=headerComputedContent
onToggle=(action "onToggle")
onClearSelection=(action "onClearSelection")
2017-10-19 15:51:08 -04:00
options=headerComponentOptions
}}
<div class="select-kit-body">
2017-10-19 15:51:08 -04:00
{{component filterComponent
filter=filter
isLoading=isLoading
2017-10-19 15:51:08 -04:00
icon=filterIcon
hasSelection=hasSelection
2017-11-09 13:57:53 -05:00
shouldDisplayFilter=shouldDisplayFilter
placeholder=filterPlaceholder
isFocused=isFocused
onFilterComputedContent=(action "onFilterComputedContent")
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
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
}}
{{/if}}
</div>
<div class="select-kit-wrapper"></div>