@adaptabletools/adaptable
Version:
Powerful AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements
56 lines (55 loc) • 1.36 kB
JavaScript
import * as PopupRedux from '../../Redux/ActionsReducers/PopupRedux';
export class MenuItemDoReduxAction {
constructor(name, label, module, reduxAction, icon, isVisible) {
this.name = name;
this.label = label;
this.category = module;
this.isVisible = isVisible;
this.icon = {
name: icon,
};
this.reduxAction = reduxAction;
}
name;
reduxAction;
label;
category;
isVisible;
icon;
}
export class MenuItemDoClickFunction {
constructor(name, label, module, clickFunction, icon, isVisible) {
this.name = name;
this.label = label;
this.category = module;
this.isVisible = isVisible;
this.icon = {
name: icon,
};
this.onClick = clickFunction;
}
name;
onClick;
label;
category;
isVisible;
icon;
}
export class MenuItemShowPopup {
constructor(name, label, module, componentName, icon, isVisible, popupParams) {
this.name = name;
this.label = label;
this.category = module;
this.isVisible = isVisible;
this.icon = {
name: icon,
};
this.reduxAction = PopupRedux.PopupShowScreen(module, componentName, popupParams);
}
name;
reduxAction;
label;
category;
isVisible;
icon;
}