Skip to main content

AG Grid

About 1 minModuletableexternal

GitHub package.json version (subfolder of monorepo)

This module is for configuring the license key of Ag Grid.

When installing this module, @ag-grid-enterprise/core is installed as a peer dependency.

read more for usage of AG Gridopen in new window

using module version of ag-grid

when installing the ag-grid packages, make sure to use the mjs version NOT cjs.

# correct
npm i @ag-grid-community/core

# wrong
npm i ag-grid-community

version

When installing ag-grid packages, the packages must inhere to same major and minor as the framework module.

The framework package should represent the major and minor of ag-grid, but double check the decencies in package.json

Reasoning for being so strict about versioning is to not have a higher version than we current have licensed for.

# correct
npm i @ag-grid-community/core@~xx.yy

# wrong
npm i @ag-grid-community/core@^x.yy

in the future a @equinor/fusion-framework-react-module-ag-grid will be created, which also exposes
plugins/extensions for react, see Fusion React Componentopen in new window

Configuration

App
import { configureModules } from '@equinor/fusion-framework-app"';
import { enableAgGrid } from '@equinor/fusion-framework-module-ag-grid';

const initializeApp = configureModules((config) => {
  enableAgGrid(config);
} 

React

App
import { createComponent } from '@equinor/fusion-framework-react-app"';
import { enableAgGrid } from '@equinor/fusion-framework-module-ag-grid';

const initializeApp = createComponent((config) => {
  enableAgGrid(config);
} 

AG-Grid Cookbook

See the cookbook documentation for AG-Grid for a basic example.

Legacy

Some apps are created before the framework, read guid how to add modules to a legacy app