# GanttTaskChangeEvent (@salmonui/gantt)

> The GanttTaskChangeEvent interface of @salmonui/gantt.

Canonical: https://salmonui.dev/docs/reference/gantt/GanttTaskChangeEvent

```ts
import type { GanttTaskChangeEvent } from '@salmonui/gantt';
```

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

## Reference

Kind: interface

```ts
interface GanttTaskChangeEvent<Row> extends GanttEvent {
    readonly action: 'add' | 'update' | 'delete' | 'indent' | 'outdent' | 'move' | 'split' | 'merge' | 'undo' | 'redo';
    readonly taskIds: readonly RowId[];
    readonly rows: readonly Row[];
}
```

Members (7):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `action` | `readonly action: 'add' \| 'update' \| 'delete' \| 'indent' \| 'outdent' \| 'move' \| 'split' \| 'merge' \| 'undo' \| 'redo';` |  |  |
| `taskIds` | `readonly taskIds: readonly RowId[];` |  |  |
| `rows` | `readonly rows: readonly Row[];` |  | The changed rows after the change (empty for deletes). |
| `type` | `type: string;` | inherited | `'sortChange'`, `'beforeSortChange'`, ... |
| `source` | `source: DataGridEventSource;` | inherited |  |
| `defaultPrevented` | `defaultPrevented: boolean;` | inherited | True after `preventDefault()` (before-events and click events). |
| `preventDefault` | `preventDefault: () => void;` | inherited | Before-events and click events: cancels the action (or the built-in behavior). |
