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