discourse/app/assets/javascripts/select-kit/addon/components/dropdown-select-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

21 lines
560 B
JavaScript

import SingleSelectComponent from "select-kit/components/single-select";
export default SingleSelectComponent.extend({
pluginApiIdentifiers: ["dropdown-select-box"],
classNames: ["dropdown-select-box"],
selectKitOptions: {
autoFilterable: false,
filterable: false,
showFullTitle: true,
headerComponent: "dropdown-select-box/dropdown-select-box-header",
caretUpIcon: "caret-up",
caretDownIcon: "caret-down",
showCaret: false
},
modifyComponentForRow() {
return "dropdown-select-box/dropdown-select-box-row";
}
});