discourse/app/assets/javascripts/select-kit/components/combo-box/combo-box-header.js.es6

15 lines
544 B
Plaintext
Raw Normal View History

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"),
2018-06-15 23:03:24 +08:00
shouldDisplayClearableButton: Ember.computed.and(
"clearable",
"computedContent.hasSelection"
)
});