Skip to content

Instantly share code, notes, and snippets.

@hai5nguy
Created April 14, 2016 17:21
Show Gist options
  • Save hai5nguy/674f53705cc6e1d79e098d3a78be191e to your computer and use it in GitHub Desktop.
Save hai5nguy/674f53705cc6e1d79e098d3a78be191e to your computer and use it in GitHub Desktop.
import React from 'react'
import { DropdownButton, MenuItem } from 'react-bootstrap'
class HoverSelector extends React.Component {
constructor(props) {
super(props)
this.render = this.render.bind(this)
}
render() {
var hoverSelectorAttr = {
className: 'pull-left'
}
var dropDownButtonAttr = {
title: 'title',
id: 'hover-selector',
style: {
margin: '5px 0 0 5px',
opacity: 0.3
}
}
return (
<div {...hoverSelectorAttr}>
<DropdownButton {...dropDownButtonAttr}>
<MenuItem key={0} eventKey="hidden">hidden</MenuItem>
<MenuItem key={1} eventKey="show">show</MenuItem>
</DropdownButton>
</div>
);
}
}
export default HoverSelector
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment