View as Markdown

API reference: @salmonui/gantt

GanttScheduleConflictEventinterface

import type { GanttScheduleConflictEvent } from '@salmonui/gantt';
interface GanttScheduleConflictEvent<Row> extends GanttEvent {
    readonly conflicts: readonly (ScheduleConflict & {
        readonly task: Row | null;
    })[];
    resolve(choice: 'move' | 'removeLink' | 'cancel'): void;
}
GanttScheduleConflictEvent members (6, 4 inherited)
NameSignatureDescription
conflictsreadonly conflicts: readonly (ScheduleConflict & { readonly task: Row | null; })[];
resolveresolve(choice: 'move' | 'removeLink' | 'cancel'): void;

Settles the conflict: keep the link and move the task, remove the link, or cancel the change. Default: the built-in dialog asks.

typeinheritedtype: string;

'sortChange', 'beforeSortChange', ...

sourceinheritedsource: DataGridEventSource;
defaultPreventedinheriteddefaultPrevented: boolean;

True after preventDefault() (before-events and click events).

preventDefaultinheritedpreventDefault: () => void;

Before-events and click events: cancels the action (or the built-in behavior).