import { ElementRef } from '@angular/core';

export class ContextMenuItem {
    enabled?: boolean = true;
    id?: string;
    title: string;
    icon?: string;
    groupStart?: boolean = false;
    visible?: boolean = true;
    callback: (value: any, element: HTMLElement) => void;
    contextMenuItems?: ContextMenuItem[];

    constructor(config: Partial<ContextMenuItem>) {
        Object.assign(this, config);
    }
}