UNPKG

@adaptabletools/adaptable

Version:

Powerful AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements

36 lines (35 loc) 1.35 kB
import { AdaptableModuleBase } from './AdaptableModuleBase'; import * as ModuleConstants from '../Utilities/Constants/ModuleConstants'; import { ACCESS_LEVEL_FULL } from '../Utilities/Constants/GeneralConstants'; export class GridInfoModule extends AdaptableModuleBase { constructor(api) { super(ModuleConstants.GridInfoModuleId, ModuleConstants.GridInfoFriendlyName, 'grid-info', 'GridInfoPopup', 'Display information about the Grid, the Options selected and all columns', api); } getViewAccessLevel() { return ACCESS_LEVEL_FULL; } createColumnMenuItems(column) { if (this.isModuleVisible()) { return [ this.createMainMenuItemShowPopup({ Name: 'grid-info-show', Label: 'Grid Info', ComponentName: this.moduleInfo.Popup, Icon: this.moduleInfo.Glyph, }), ]; } } createContextMenuItems(menuContext) { if (this.isModuleVisible()) { return [ this.createMainMenuItemShowPopup({ Name: 'grid-info-show', Label: 'Grid Info', ComponentName: this.moduleInfo.Popup, Icon: this.moduleInfo.Glyph, }), ]; } } }