View as Markdown

API reference: @salmonui/scheduler

SchedulerContextMenuItemClickEventinterface

import type { SchedulerContextMenuItemClickEvent } from '@salmonui/scheduler';
interface SchedulerContextMenuItemClickEvent<Row = unknown> extends SchedulerCancelableEvent {
    readonly id: string;
    readonly item: SchedulerMenuItem | undefined;
    readonly context: SchedulerContextMenuContext<Row>;
}

onContextMenuItemClick: a chosen item. The default items (newEvent, newRecurringEvent and today on cells, edit and delete on events) run their action unless preventDefault() is called.

SchedulerContextMenuItemClickEvent members (7, 4 inherited)
NameSignatureDescription
idreadonly id: string;
itemreadonly item: SchedulerMenuItem | undefined;
contextreadonly context: SchedulerContextMenuContext<Row>;
typeinheritedtype: string;
sourceinheritedsource: SchedulerEventSource;
defaultPreventedinheriteddefaultPrevented: boolean;
preventDefaultinheritedpreventDefault: () => void;