Created
March 11, 2015 14:45
-
-
Save bradgignac/020da01eae23e0902ce7 to your computer and use it in GitHub Desktop.
Popover
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
var Dispatcher = require('flux/dispatcher'); | |
var PopoverForm = require('canon-react/popoverForm'); | |
var CreateNetworkPopover = React.createClass({ | |
render: function () { | |
<CreateNetworkPopover> | |
<PopoverForm onSave={this.create} onCancel={this.dismiss} open={this.state.open}> | |
// Custom popover content goes here. | |
</PopoverForm> | |
</CreateNetworkPopover> | |
}, | |
create: function () { | |
var data; // get this from props | |
Dispatcher.dispatch('createNetwork', data); | |
}, | |
dismiss: function () { | |
this.setState({ open: false }); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment