2017-11-21 18:53:09 +08:00
|
|
|
import SingleSelectComponent from "select-kit/components/single-select";
|
2022-06-17 22:43:13 +08:00
|
|
|
import { gte } from "@ember/object/computed";
|
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
|
|
|
},
|
|
|
|
|
2022-06-17 22:43:13 +08:00
|
|
|
autoFilterable: gte("content.length", 10),
|
2017-10-20 03:51:08 +08:00
|
|
|
});
|