Install ag-Grid with NPM
Both ag-Grid is available through NPM packages. Below is a code example of using ag-Grid with NPM and ECMA 6 imports.
To install ag-Grid and update your package.json
file run:
To install ag-Grid Enterprise and update your package.json
file run:
Afterwards, depending on your project setup, you can either require
or import
the module. For ag-grid, you need the ag-grid module:
for ag-Grid Enterprise features you need to import the ag-Grid Enterprise package instead:
After you have loaded the scripts, you should include the styles in your project. There are several ways to do it, depending on your module bundler and the specifics of your project. The stylesheet files reside in dist/styles/
directory of the ag-grid package - you should include ag-grid.css
and the theme of your choice.