backend/app/assets/export/html/database.js
garrettmills b5b2a7cd85
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing
Rewrite HTML export to support all node types (#3)
2020-10-18 12:55:32 -05:00

19 lines
554 B
JavaScript

(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);
})();