mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 03:05:25 +08:00
07813c4a91
* Convert select-kit from es6 to js * Hide more git blames
18 lines
500 B
JavaScript
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)
|
|
});
|