bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/modals/dropdown/DropdownTrigger.jsx

27 lines
673 B
React
Raw Normal View History

2016-08-20 05:20:17 +08:00
import React, { Component, PropTypes } from 'react';
import Button from '/imports/ui/components/button/component';
import styles from './styles';
export default class DropdownTrigger extends Component {
constructor(props) {
super(props);
}
render() {
const { labelBtn, iconBtn } = this.props;
const toggle = this.props.toggleMenu.bind(this);
return (
<Button className={styles.settingBtn}
role='button'
label={labelBtn}
icon={iconBtn}
ghost={true}
circle={true}
hideLabel={true}
onClick={toggle}
onKeyDown={toggle}
aria-haspopup={'true'}/>
);
}
}