AG-420 Improve React implementation

This commit is contained in:
Sean Landsman
2017-05-25 12:21:02 +01:00
parent 4ef1959a52
commit 587af2e888
5 changed files with 28 additions and 24 deletions

View File

@@ -21,10 +21,10 @@ class FxQuoteMatrix extends Component {
onGridReady(params) {
this.gridApi = params.api;
this.columnApi = params.columnApi;
}
componentDidMount() {
this.gridApi.setRowData(this.props.rowData);
if (this.props.rowData) {
this.gridApi.setRowData(this.props.rowData)
}
}
componentWillReceiveProps(nextProps) {