UNPKG

@adaptabletools/adaptable

Version:

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

29 lines (28 loc) 1.34 kB
import * as ModuleConstants from '../Utilities/Constants/ModuleConstants'; import { AdaptableModuleBase } from './AdaptableModuleBase'; import * as PopupRedux from '../Redux/ActionsReducers/PopupRedux'; export class SettingsPanelModule extends AdaptableModuleBase { constructor(api) { const friendlyName = api.optionsApi.getSettingsPanelOptions().title; super(ModuleConstants.SettingsPanelModuleId, friendlyName, 'settings', null, 'Manage all Adaptable Settings', api); } createColumnMenuItems(column) { if (this.isModuleVisible()) { return [ this.createMenuItemReduxAction('settings-panel-open', 'Open ' + this.moduleInfo.FriendlyName, this.moduleInfo.Glyph, PopupRedux.PopupShowScreen()), ]; } } createContextMenuItems(menuContext) { if (this.isModuleVisible()) { return [ this.createMenuItemReduxAction('settings-panel-open', 'Open ' + this.moduleInfo.FriendlyName, this.moduleInfo.Glyph, PopupRedux.PopupShowScreen()), ]; } } createModuleMenuItem(source) { if (this.isModuleVisible()) { return this.createMenuItemReduxAction('settings-panel-open', 'Open ' + this.moduleInfo.FriendlyName, this.moduleInfo.Glyph, PopupRedux.PopupShowScreen()); } } }