(function() { // specify the columns const columnDefs = {{ COLUMN_DEFS }}; // specify the data var rowData = {{ ROW_DATA }}; // let the grid know which columns and what data to use var gridOptions = { columnDefs: columnDefs, rowData: rowData }; // lookup the container we want the Grid to use const eGridDiv = document.querySelector('#{{ GRID_ID }}'); // create the grid passing in the div to use together with the columns & data we want to use new agGrid.Grid(eGridDiv, gridOptions); })();