View as Markdown

API reference: @salmonui/gantt

GanttTaskbarEditEventinterface

import type { GanttTaskbarEditEvent } from '@salmonui/gantt';
interface GanttTaskbarEditEvent<Row> extends GanttEvent {
    readonly action: GanttTaskbarAction;
    readonly taskId: RowId;
    readonly task: Row;
    readonly start: Date | null;
    readonly end: Date | null;
    readonly progress: number;
    readonly dependency?: Dependency & {
        readonly to: RowId;
    };
    readonly segmentIndex?: number;
}
GanttTaskbarEditEvent members (12, 4 inherited)
NameSignatureDescription
actionreadonly action: GanttTaskbarAction;
taskIdreadonly taskId: RowId;
taskreadonly task: Row;
startreadonly start: Date | null;

Proposed dates and progress (start of the edit in onTaskbarEditStart).

endreadonly end: Date | null;
progressreadonly progress: number;
dependencyoptionalreadonly dependency?: Dependency & { readonly to: RowId; };

For 'connect': the link being drawn.

segmentIndexoptionalreadonly segmentIndex?: number;
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).