Interface ContextMenuItemConfig

interface ContextMenuItemConfig {
    action?: (() => void);
    component?: unknown;
    componentProps?: object;
    disabled?: boolean;
    label?: string;
}

Properties

action?: (() => void)

Type declaration

    • (): void
    • Returns void

component?: unknown

A framework component to render as the menu item. The component type is opaque to core; the framework adapter renders it.

componentProps?: object
disabled?: boolean
label?: string