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

Failed to ignore revisions in .git-blame-ignore-revs.

18 lines
500 B
JavaScript
Raw Normal View History

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