API reference: @salmonui/scheduler
SchedulerDialogContextinterface
import type { SchedulerDialogContext } from '@salmonui/scheduler';interface SchedulerDialogContext<Row = unknown> {
readonly isNew: boolean;
readonly values: Readonly<Record<string, unknown>>;
readonly setValue: (role: string, value: unknown) => void;
readonly errors: Readonly<Record<string, string>>;
readonly row: Row | null;
readonly save: () => void;
readonly cancel: () => void;
readonly delete: () => void;
}
| Name | Signature | Description |
|---|---|---|
isNew | readonly isNew: boolean; | |
values | readonly values: Readonly<Record<string, unknown>>; | The editor values by role ( |
setValue | readonly setValue: (role: string, value: unknown) => void; | |
errors | readonly errors: Readonly<Record<string, string>>; | |
row | readonly row: Row | null; | |
save | readonly save: () => void; | |
cancel | readonly cancel: () => void; | |
delete | readonly delete: () => void; |