Skip to content

Commit

Permalink
Merge pull request react-bootstrap#1620 from Data-Meister/master
Browse files Browse the repository at this point in the history
Add Modal propTypes for transition callbacks so it will be documented.
  • Loading branch information
taion committed Jan 20, 2016
2 parents e95a59c + 3b13f4a commit 0c9661d
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion src/Modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,37 @@ const Modal = React.createClass({
* A callback fired when the header closeButton or non-static backdrop is
* clicked. Required if either are specified.
*/
onHide: React.PropTypes.func
onHide: React.PropTypes.func,

/**
* Callback fired before the Modal transitions in
*/
onEnter: React.PropTypes.func,

/**
* Callback fired as the Modal begins to transition in
*/
onEntering: React.PropTypes.func,

/**
* Callback fired after the Modal finishes transitioning in
*/
onEntered: React.PropTypes.func,

/**
* Callback fired right before the Modal transitions out
*/
onExit: React.PropTypes.func,

/**
* Callback fired as the Modal begins to transition out
*/
onExiting: React.PropTypes.func,

/**
* Callback fired after the Modal finishes transitioning out
*/
onExited: React.PropTypes.func
},

childContextTypes: {
Expand Down

0 comments on commit 0c9661d

Please sign in to comment.