2019-11-09 00:32:20 +08:00
|
|
|
import { alias, and } from "@ember/object/computed";
|
2017-11-21 18:53:09 +08:00
|
|
|
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",
|
|
|
|
|
2019-11-09 00:32:20 +08:00
|
|
|
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")
|
2017-11-21 18:53:09 +08:00
|
|
|
});
|