mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 23:20:33 +08:00
d48542796e
- improve mini-tag-chooser keyboard behavior - all multil select now respond to select all and left/right arrows - improve events handling - many minor tweaks
51 lines
1.5 KiB
Handlebars
51 lines
1.5 KiB
Handlebars
{{#component headerComponent
|
|
tabindex=tabindex
|
|
isFocused=isFocused
|
|
isExpanded=isExpanded
|
|
highlightedSelection=highlightedSelection
|
|
onClickSelectionItem=(action "onClickSelectionItem")
|
|
computedContent=headerComputedContent
|
|
onToggle=(action "onToggle")
|
|
options=headerComponentOptions
|
|
}}
|
|
{{component filterComponent
|
|
icon=filterIcon
|
|
placeholder=filterPlaceholder
|
|
filter=filter
|
|
hasSelection=hasSelection
|
|
isLoading=isLoading
|
|
shouldDisplayFilter=shouldDisplayFilter
|
|
isFocused=isFocused
|
|
onFilterComputedContent=(action "onFilterComputedContent")
|
|
}}
|
|
{{/component}}
|
|
|
|
<div class="select-kit-body">
|
|
{{#if renderedBodyOnce}}
|
|
{{#unless isLoading}}
|
|
{{component collectionComponent
|
|
collectionHeaderComputedContent=collectionHeaderComputedContent
|
|
hasSelection=hasSelection
|
|
noneRowComputedContent=noneRowComputedContent
|
|
createRowComputedContent=createRowComputedContent
|
|
collectionComputedContent=collectionComputedContent
|
|
rowComponent=rowComponent
|
|
noneRowComponent=noneRowComponent
|
|
createRowComponent=createRowComponent
|
|
templateForRow=templateForRow
|
|
templateForNoneRow=templateForNoneRow
|
|
templateForCreateRow=templateForCreateRow
|
|
onClickRow=(action "onClickRow")
|
|
onMouseoverRow=(action "onMouseoverRow")
|
|
highlighted=highlighted
|
|
computedValue=computedValue
|
|
rowComponentOptions=rowComponentOptions
|
|
noContentRow=noContentRow
|
|
maxContentRow=maxContentRow
|
|
}}
|
|
{{/unless}}
|
|
{{/if}}
|
|
</div>
|
|
|
|
<div class="select-kit-wrapper"></div>
|