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

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

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