Which is the cleanest way to access to the GridApi of the AG Grid:
Option1
import { AgGridNg2 } from 'ag-grid-angular';
@ViewChild('agGrid') agGrid: AgGridNg2;
Option2
Event onGridReady
Answer
The best way is to use onGridReady
function and use params.api
to assign by your property
No comments:
Post a Comment