let gridOptions = {
rowData: myRowData,
columnDefs: myColDefs,
pagination: true,
rowSelection: 'single',
onRowClicked: function(event) { console.log('a row was clicked'); },
onColumnResized: function(event) { console.log('a column was resized'); },
onGridReady: function(event) { console.log('the grid is now ready'); },
isScrollLag: function() { return false; }
}
export class AgGridReact extends React.Component {
protected eGridDiv: HTMLElement;
render() {
return React.createElement("div", {
style: ...,
ref: e => {
this.eGridDiv = e;
}
}, ...);
}
}