Created
April 14, 2016 17:27
-
-
Save hai5nguy/5d6bae25af36c5a09133c811c0d944b2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react' | |
import { DropdownButton, MenuItem } from 'react-bootstrap' | |
class HoverSelector extends React.Component { | |
constructor: function (props) { | |
super(props) | |
}, | |
render: function () { | |
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 // this exports for others to do: import HoverSelector from './hoverselect.js' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment