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.

19 lines (18 loc) 1.19 kB
import { ContextMenuActionData } from './context-menu-action-data'; import { AbstractContextMenuOption } from './abstract-context-menu-option'; export type ContextMenuActionFunction = (data: ContextMenuActionData) => void; export type ContextMenuIsEnabledFunction = (elementId: string, actionId: string) => boolean; export declare class ContextMenuOption extends AbstractContextMenuOption<ContextMenuActionFunction, ContextMenuIsEnabledFunction> { actionId: string; actionText: string; action?: ContextMenuActionFunction; isActionEnabled?: ContextMenuIsEnabledFunction; isDivider?: boolean; iconClass?: string; backgroundIconColor?: string; iconColor?: string; isIconEnabled?: ContextMenuIsEnabledFunction; childrenContextMenuOptions?: Array<ContextMenuOption>; iconFontSize?: string; constructor(actionId: string, actionText: string, action?: ContextMenuActionFunction, isActionEnabled?: ContextMenuIsEnabledFunction, isDivider?: boolean, iconClass?: string, backgroundIconColor?: string, iconColor?: string, isIconEnabled?: ContextMenuIsEnabledFunction, childrenContextMenuOptions?: Array<ContextMenuOption>, iconFontSize?: string); }