View as Markdown

API reference: @salmonui/gantt

GanttEditinginterface

import type { GanttEditing } from '@salmonui/gantt';
interface GanttEditing<Row> {
    readonly mode?: 'cell' | 'row' | 'dialog' | 'auto';
    readonly edit?: boolean;
    readonly add?: boolean;
    readonly delete?: boolean;
    readonly taskbar?: boolean;
    readonly taskbarDragBetweenRows?: boolean;
    readonly newRowPosition?: 'top' | 'bottom' | 'above' | 'below' | 'child';
    readonly confirmDelete?: boolean;
    readonly dialogTabs?: readonly GanttDialogTab<Row>[];
}

editing.

GanttEditing members (9)
NameSignatureDescription
modeoptionalreadonly mode?: 'cell' | 'row' | 'dialog' | 'auto';

Grid pane edit mode; 'auto' is cell editing in the grid and the dialog from the chart. Default 'auto'.

editoptionalreadonly edit?: boolean;
addoptionalreadonly add?: boolean;
deleteoptionalreadonly delete?: boolean;
taskbaroptionalreadonly taskbar?: boolean;

Taskbar drag, resize, progress and connect (default true when editable).

taskbarDragBetweenRowsoptionalreadonly taskbarDragBetweenRows?: boolean;

Dropping a taskbar on another row reparents (or reassigns in the resource view).

newRowPositionoptionalreadonly newRowPosition?: 'top' | 'bottom' | 'above' | 'below' | 'child';
confirmDeleteoptionalreadonly confirmDelete?: boolean;
dialogTabsoptionalreadonly dialogTabs?: readonly GanttDialogTab<Row>[];