discourse/app/assets/javascripts/select-kit/components/topic-footer-mobile-dropdown.js
Robin Ward 07813c4a91
Convert select-kit from es6 to js (#9246)
* Convert select-kit from es6 to js

* Hide more git blames
2020-03-20 12:40:32 -04:00

19 lines
411 B
JavaScript

import ComboBoxComponent from "select-kit/components/combo-box";
export default ComboBoxComponent.extend({
pluginApiIdentifiers: ["topic-footer-mobile-dropdown"],
classNames: ["topic-footer-mobile-dropdown"],
selectKitOptions: {
none: "topic.controls",
filterable: false,
autoFilterable: false
},
actions: {
onChange(value, item) {
item.action && item.action();
}
}
});