2017-11-21 11:53:09 +01:00
|
|
|
import SingleSelectComponent from "select-kit/components/single-select";
|
2020-02-03 14:22:14 +01:00
|
|
|
import { computed } from "@ember/object";
|
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
|
|
|
},
|
|
|
|
|
2020-02-04 11:23:15 -05:00
|
|
|
autoFilterable: computed.gte("content.length", 10)
|
2017-10-19 12:51:08 -07:00
|
|
|
});
|