This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse/templates/components/select-box.hbs

42 lines
965 B
Handlebars

<input
class="select-box-offscreen"
type="text"
aria-haspopup="true"
role="button"
aria-labelledby="select-box-input-{{componentId}}"
/>
{{component selectBoxHeaderComponent
data=selectedData
focused=focused
caretUpIcon=caretUpIcon
caretDownIcon=caretDownIcon
onToggle=(action "onToggle")
icon=icon
expanded=expanded
}}
<div class="select-box-body">
{{#if _renderBody}}
{{#if filterable}}
{{component selectBoxFilterComponent
onFilterChange=(action "onFilterChange")
filterIcon=filterIcon
filterPlaceholder=filterPlaceholder
}}
{{/if}}
{{component selectBoxCollectionComponent
filteredData=filteredData
selectBoxRowComponent=selectBoxRowComponent
lastHoveredId=lastHoveredId
onSelectRow=(action "onSelectRow")
onHoverRow=(action "onHoverRow")
noDataText=noDataText
selectedId=value
}}
{{/if}}
</div>
<div class="select-box-wrapper"></div>