discourse/app/assets/javascripts/select-kit/addon/components/combo-box.js
Robin Ward 09ca75d17e FIX: select-kit was in the wrong place
`app/` means we want to merge it into our application there. `addon`
means give it its own module namespace, which is what we wanted.
2020-05-20 11:51:49 -04:00

18 lines
500 B
JavaScript

import SingleSelectComponent from "select-kit/components/single-select";
import { computed } from "@ember/object";
export default SingleSelectComponent.extend({
pluginApiIdentifiers: ["combo-box"],
classNames: ["combobox", "combo-box"],
selectKitOptions: {
caretUpIcon: "caret-up",
caretDownIcon: "caret-down",
autoFilterable: "autoFilterable",
clearable: false,
headerComponent: "combo-box/combo-box-header"
},
autoFilterable: computed.gte("content.length", 10)
});