react-bootstrap: add missing function props to Modal (#9063)

* react-bootstrap: add missing function props to Modal

* Updated type definition as requested.
This commit is contained in:
Jon Sheppard
2016-04-23 20:55:14 +07:00
committed by Masahiro Wakame
parent 362675c31d
commit e735ebe1d3
2 changed files with 7 additions and 1 deletions

View File

@@ -281,7 +281,7 @@ export class ReactBootstrapTest extends Component<any, any> {
<div style={style}>
<div className='static-modal'>
<Modal.Dialog>
<Modal.Dialog onHide={this.callback} onEnter={this.callback} onEntered={this.callback} onEntering={this.callback} onExit={this.callback} onExited={this.callback} onExiting={this.callback}>
<Modal.Header>
<Modal.Title>Modal title</Modal.Title>
</Modal.Header>

View File

@@ -190,6 +190,12 @@ declare module "react-bootstrap" {
dialogComponent?: any; // TODO: Add more specific type
enforceFocus?: boolean;
keyboard?: boolean;
onEnter?: (node: HTMLElement) => any;
onEntered?: (node: HTMLElement) => any;
onEntering?: (node: HTMLElement) => any;
onExit?: (node: HTMLElement) => any;
onExited?: (node: HTMLElement) => any;
onExiting?: (node: HTMLElement) => any;
show?: boolean;
}
interface ModalClass extends React.ClassicComponentClass<ModalProps> {