UNPKG

systelab-components

Version:

systelab-components is a set of components that use wide accepted and adopted standard technologies like Angular and Bootstrap, as well as other popular libraries. Please read the ATTRIBUTION.md file for a complete list of dependencies.

18 lines (17 loc) 1.17 kB
import { GridContextMenuActionData } from './grid-context-menu-action-data'; import { AbstractContextMenuOption } from '../../contextmenu/abstract-context-menu-option'; export type GridContextMenuActionFunction<T> = (data: GridContextMenuActionData<T>) => void; export type GridContextMenuIsEnabledFunction<T> = (data: T) => boolean; export declare class GridContextMenuOption<T> extends AbstractContextMenuOption<GridContextMenuActionFunction<T>, GridContextMenuIsEnabledFunction<T>> { actionId: string; actionText: string; action?: GridContextMenuActionFunction<T>; isActionEnabled?: GridContextMenuIsEnabledFunction<T>; isDivider?: boolean; iconClass?: string; backgroundIconColor?: string; iconColor?: string; childrenContextMenuOptions?: Array<GridContextMenuOption<T>>; iconFontSize?: string; constructor(actionId: string, actionText: string, action?: GridContextMenuActionFunction<T>, isActionEnabled?: GridContextMenuIsEnabledFunction<T>, isDivider?: boolean, iconClass?: string, backgroundIconColor?: string, iconColor?: string, childrenContextMenuOptions?: Array<GridContextMenuOption<T>>, iconFontSize?: string); }