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