discourse/app/assets/javascripts/select-kit/addon/components/topic-footer-mobile-dropdown.js

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

19 lines
414 B
JavaScript
Raw Normal View History

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