mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
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:
committed by
Masahiro Wakame
parent
362675c31d
commit
e735ebe1d3
@@ -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>
|
||||
|
||||
6
react-bootstrap/react-bootstrap.d.ts
vendored
6
react-bootstrap/react-bootstrap.d.ts
vendored
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user