import { GridOptions } from '@ag-grid-community/core' ; declare var YearFilter ; declare var YearFloatingFilter ; const gridOptions = { columnDefs : [ { field : 'athlete' , filter : 'agMultiColumnFilter' } , { field : 'sport' , filter : 'agMultiColumnFilter' } , { field : 'year' , filter : 'agMultiColumnFilter' , filterParams : { filters : [ { filter : 'yearFilter' , floatingFilterComponent : 'yearFloatingFilter' , } , { filter : 'agNumberColumnFilter' , } , ] , } , } , ] , defaultColDef : { flex : 1 , minWidth : 200 , resizable : true , floatingFilter : true , menuTabs : [ 'filterMenuTab' ] , } , components : { yearFilter : YearFilter , yearFloatingFilter : YearFloatingFilter , } , } ; document . addEventListener ( 'DOMContentLoaded' , function ( ) { var gridDiv = document . querySelector ( '#myGrid' ) ; new agGrid . Grid ( gridDiv , gridOptions ) ; fetch ( 'https://www.ag-grid.com/example-assets/olympic-winners.json' ) . then ( response => response . json ( ) ) . then ( data => gridOptions . api ! . setRowData ( data ) ) ; } ) ;