Files
Iris/src/js/components/ContextMenuTrigger.js

33 lines
693 B
JavaScript
Raw Normal View History

import React, { PropTypes } from 'react'
import FontAwesome from 'react-fontawesome'
export default class ContextMenuTrigger extends React.Component{
2017-10-10 13:05:28 +13:00
constructor(props){
super(props);
}
handleClick(e){
2017-11-20 15:49:52 +13:00
e.preventDefault();
e.stopPropagation();
this.props.onTrigger(e);
}
render(){
var className = 'context-menu-trigger mouse-contextable touch-contextable'
if (this.props.className){
className += ' '+this.props.className
}
return (
<span
className={className}
onClick={e => this.handleClick(e)}>
2017-11-18 08:15:06 +13:00
<span className="dot"></span>
<span className="dot"></span>
<span className="dot"></span>
2017-06-19 07:38:23 +12:00
</span>
);
}
}