AG-1329 Update framework examples and tests

This commit is contained in:
Sean Landsman
2019-10-18 20:46:09 +01:00
parent 51621200da
commit b4c3ebc248
5 changed files with 14 additions and 20 deletions

View File

@@ -2,10 +2,11 @@ import React, {Component} from 'react';
import SimpleCellRenderer from './simpleCellRenderer.jsx';
import {AgGridReact} from 'ag-grid-react';
import '@ag-community/client-side-row-model'
// for community features
import {AllModules} from "@ag-community/grid-all-modules";
// put this line in to use ag-Grid enterprise
// import 'ag-grid-enterprise';
// for enterprise features
// import {AllModules} from "@ag-enterprise/grid-all-modules";
export default class MyApp extends Component {
@@ -63,7 +64,7 @@ export default class MyApp extends Component {
render() {
return (
<div style={{height: '100%'}} className="ag-theme-fresh">
<AgGridReact columnDefs={this.state.columnDefs} rowData={this.state.rowData}/>
<AgGridReact columnDefs={this.state.columnDefs} rowData={this.state.rowData} modules={AllModules}/>
</div>
);
}