mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 09:23:13 +08:00
3287ac77e0
noneLabels works almost like none but instead of actually adding a row in the list, it will only change the text displayed in the header, when there's no selection.
12 lines
532 B
JavaScript
12 lines
532 B
JavaScript
import SelectKitHeaderComponent from "select-kit/components/select-kit/select-kit-header";
|
|
|
|
export default SelectKitHeaderComponent.extend({
|
|
layoutName: "select-kit/templates/components/combo-box/combo-box-header",
|
|
classNames: "combo-box-header",
|
|
|
|
clearable: Ember.computed.alias("options.clearable"),
|
|
caretUpIcon: Ember.computed.alias("options.caretUpIcon"),
|
|
caretDownIcon: Ember.computed.alias("options.caretDownIcon"),
|
|
shouldDisplayClearableButton: Ember.computed.and("clearable", "computedContent.hasSelection")
|
|
});
|