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

13 lines
525 B
Plaintext
Raw Normal View History

import { alias, and } from "@ember/object/computed";
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: alias("options.clearable"),
caretUpIcon: alias("options.caretUpIcon"),
caretDownIcon: alias("options.caretDownIcon"),
2019-11-09 00:50:03 +08:00
shouldDisplayClearableButton: and("clearable", "computedContent.hasSelection")
});