Created
April 17, 2019 15:13
-
-
Save maxkoretskyi/6f8b8e9793a887faf1e246a6859abca7 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
export class AgGridReact extends React.Component { | |
portals: ReactPortal[] = []; | |
mountReactPortal(portal: ReactPortal, reactComponent: ReactComponent, resolve: (value: any) => void) { | |
this.portals = [...this.portals, portal]; | |
this.batchUpdate(...); | |
} | |
render() { | |
return React.createElement<any>("div", { | |
style: this.createStyleForDiv(), | |
ref: (e: HTMLElement) => { | |
this.eGridDiv = e; | |
} | |
}, this.portals); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment