ensl_gathers/app/javascripts/components/menubar.js

18 lines
335 B
JavaScript
Raw Normal View History

2016-02-18 11:06:35 +00:00
const MenubarMixin = exports.MenubarMixin = {
getInitialState() {
return {
show: false
}
},
toggleShow() {
this.setState({ show: !this.state.show });
},
componentClass() {
let componentClass = ["dropdown", "messages-menu"];
if (this.state.show) componentClass.push("open");
return componentClass.join(" ");
}
};