2017-10-20 03:51:08 +08:00
|
|
|
import SelectBoxKitComponent from "select-box-kit/components/select-box-kit";
|
|
|
|
import { on } from "ember-addons/ember-computed-decorators";
|
|
|
|
|
|
|
|
export default SelectBoxKitComponent.extend({
|
|
|
|
classNames: "combobox combo-box",
|
|
|
|
autoFilterable: true,
|
|
|
|
headerComponent: "combo-box/combo-box-header",
|
|
|
|
|
|
|
|
caretUpIcon: "caret-up",
|
|
|
|
caretDownIcon: "caret-down",
|
|
|
|
clearable: false,
|
|
|
|
|
|
|
|
@on("didReceiveAttrs")
|
2017-10-20 21:41:00 +08:00
|
|
|
_setComboBoxOptions() {
|
2017-10-20 03:51:08 +08:00
|
|
|
this.set("headerComponentOptions", Ember.Object.create({
|
|
|
|
caretUpIcon: this.get("caretUpIcon"),
|
|
|
|
caretDownIcon: this.get("caretDownIcon"),
|
|
|
|
clearable: this.get("clearable"),
|
|
|
|
}));
|
|
|
|
}
|
|
|
|
});
|