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