import { GridOptions } from '@ag-grid-community/core' ; const gridOptions = { columnDefs : [ { headerName : 'Default' , field : 'animal' , filter : 'agSetColumnFilter' , } , { headerName : 'Excel (Windows)' , field : 'animal' , filter : 'agSetColumnFilter' , filterParams : { excelMode : 'windows' , } , } , { headerName : 'Excel (Mac)' , field : 'animal' , filter : 'agSetColumnFilter' , filterParams : { excelMode : 'mac' , } , } , ] , defaultColDef : { flex : 1 , minWidth : 200 , resizable : true , } , sideBar : 'filters' , rowData : getData ( ) , localeText : { applyFilter : 'OK' , cancelFilter : 'Cancel' , resetFilter : 'Clear Filter' , } , } ; document . addEventListener ( 'DOMContentLoaded' , function ( ) { var gridDiv = document . querySelector ( '#myGrid' ) ; new agGrid . Grid ( gridDiv , gridOptions ) ; } ) ;