@deephaven/js-plugin-ag-grid
Version:
Deephaven AG Grid plugin
25 lines • 940 B
JavaScript
var _a;
import { PluginType } from '@deephaven/plugin';
import { vsTable } from '@deephaven/icons';
import { LicenseManager } from '@ag-grid-enterprise/core';
import { AgGridWidget } from './AgGridWidget';
try {
const { env } = import.meta;
const key = (_a = env === null || env === void 0 ? void 0 : env.VITE_AG_GRID_LICENSE_KEY) !== null && _a !== void 0 ? _a : '';
if (key != null && key !== '') {
LicenseManager.setLicenseKey(key);
}
}
catch (error) {
// We can just ignore this error if the license key is not set or invalid. AG Grid will log an error, and consumers should be adding their own license key.
}
export const AgGridPlugin = {
name: '@deephaven/js-plugin-ag-grid',
type: PluginType.WIDGET_PLUGIN,
supportedTypes: 'deephaven.ag_grid.AgGrid',
component: AgGridWidget,
icon: vsTable,
title: 'AG Grid',
};
export default AgGridPlugin;
//# sourceMappingURL=AgGridPlugin.js.map