# SchedulerContextMenuContext (@salmonui/scheduler)

> The SchedulerContextMenuContext type of @salmonui/scheduler: What a context menu opened on: a cell (or cell range) or an event occurrence.

Canonical: https://salmonui.dev/docs/reference/scheduler/SchedulerContextMenuContext

```ts
import type { SchedulerContextMenuContext } from '@salmonui/scheduler';
```

Entry index: https://salmonui.dev/docs/reference/scheduler (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/scheduler.md).

## Reference

Kind: type

```ts
type SchedulerContextMenuContext<Row = unknown> = {
    readonly kind: 'cell';
    readonly start: Date;
    readonly end: Date;
    readonly allDay: boolean;
    readonly resources: Readonly<Record<string, readonly unknown[]>> | null;
    readonly element: Element;
} | {
    readonly kind: 'event';
    readonly occurrence: SchedulerEventInfo<Row>;
    readonly row: Row;
    readonly element: Element;
};
```

What a context menu opened on: a cell (or cell range) or an event occurrence.
