mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 09:42:07 +08:00
22 lines
637 B
JavaScript
22 lines
637 B
JavaScript
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")
|
|
_setComponentOptions() {
|
|
this.set("headerComponentOptions", Ember.Object.create({
|
|
caretUpIcon: this.get("caretUpIcon"),
|
|
caretDownIcon: this.get("caretDownIcon"),
|
|
clearable: this.get("clearable"),
|
|
}));
|
|
}
|
|
});
|