2017-11-21 18:53:09 +08:00
|
|
|
import SingleSelectComponent from "select-kit/components/single-select";
|
2020-02-03 21:22:14 +08:00
|
|
|
import { computed } from "@ember/object";
|
2017-10-20 03:51:08 +08:00
|
|
|
|
2017-11-21 18:53:09 +08:00
|
|
|
export default SingleSelectComponent.extend({
|
|
|
|
pluginApiIdentifiers: ["combo-box"],
|
2020-02-03 21:22:14 +08:00
|
|
|
classNames: ["combobox", "combo-box"],
|
2017-10-20 03:51:08 +08:00
|
|
|
|
2020-02-03 21:22:14 +08:00
|
|
|
selectKitOptions: {
|
|
|
|
caretUpIcon: "caret-up",
|
|
|
|
caretDownIcon: "caret-down",
|
|
|
|
autoFilterable: "autoFilterable",
|
|
|
|
clearable: false,
|
|
|
|
headerComponent: "combo-box/combo-box-header",
|
2018-03-22 18:29:55 +08:00
|
|
|
},
|
|
|
|
|
2020-02-05 00:23:15 +08:00
|
|
|
autoFilterable: computed.gte("content.length", 10),
|
2017-10-20 03:51:08 +08:00
|
|
|
});
|