discourse/app/assets/javascripts/select-kit/addon/components/combo-box.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
497 B
JavaScript
Raw Normal View History

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