apexgantt 3.14.1 → 3.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/apexgantt.d.ts +9 -1
- package/apexgantt.es.min.js +1 -1
- package/apexgantt.min.js +1 -1
- package/demo/draw-task.html +19 -1
- package/demo/gantt-with-annotations.html +3 -19
- package/demo/gantt-with-interactions.html +10 -4
- package/demo/scroll-to-task.html +9 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -118,7 +118,8 @@ The layout can be configured by passing a second argument to `ApexGantt` with th
|
|
|
118
118
|
| `enableTaskEdit` | `boolean` | `false` | Show the inline task-edit form when a task row is clicked. |
|
|
119
119
|
| `enableTaskResize` | `boolean` | `true` | Allow task bars to be resized by dragging their handles. |
|
|
120
120
|
| `enableDrawTask` | `boolean` | `false` | Allow creating a task by dragging across an empty stretch of the timeline: press on an empty row, drag horizontally to sweep out the date range, and release to add a task with those (snapped) start/end dates. Press `Escape` mid-drag to cancel. Off by default so existing empty-area drags stay inert. Respects `beforeTaskAdd` and is recorded in undo history. See [Drawing tasks on the timeline](#drawing-tasks-on-the-timeline). |
|
|
121
|
-
| `enableScrollButtons` | `boolean` | `
|
|
121
|
+
| `enableScrollButtons` | `boolean` | `false` | Show a small chevron at the edge of a task's row when that task's bar is scrolled out of the visible timeline window; clicking it scrolls the bar back into view (nearest-edge). Also available programmatically via `gantt.scrollToTask()`. |
|
|
122
|
+
| `scrollToTaskOnRowClick` | `boolean` | `false` | Clicking a task-list row scrolls that task's bar into view (nearest-edge, horizontal and vertical), the same as calling `gantt.scrollToTask()`. Composes with `enableSelection` (a single click both selects the row and reveals its bar). Clicks on the checkbox, the toggle chevron, or an active inline-edit input are ignored. |
|
|
122
123
|
| `enableProgressDrag` | `boolean` | `true` | Allow editing task progress by dragging the small handle that appears at the bottom of the bar on hover. Snaps to whole percent on commit and emits a `taskProgressChanged` event. |
|
|
123
124
|
| `enableTaskEditingShortcuts` | `boolean` | `false` | Enable keyboard shortcuts on the task-list panel: `Delete` / `Backspace` removes the focused task (cascade: children), `Tab` indents under the previous sibling, `Shift+Tab` outdents to the grandparent. Off by default; opt in once you've decided the shortcuts fit your app. All operations are recorded in the undo history and respect `beforeTaskDelete` / `beforeTaskMove` hooks. |
|
|
124
125
|
| `enableTaskCRUDToolbar` | `boolean` | `false` | Show built-in `+ Add task` and trash-icon `Delete` buttons in the toolbar. Delete is auto-disabled when nothing is selected and deletes every selected task (cascade: children) on click; Add inserts a root-level "New task" using placeholder dates derived from the current project span. Combine with `enableSelection: true` for the delete button to be useful. |
|
package/apexgantt.d.ts
CHANGED
|
@@ -2514,9 +2514,16 @@ export declare interface GanttUserOptions {
|
|
|
2514
2514
|
* Show a small chevron at the edge of a task's row when that task's bar is
|
|
2515
2515
|
* scrolled out of the visible timeline window; clicking it scrolls the bar
|
|
2516
2516
|
* into view. Also available programmatically via `gantt.scrollToTask()`.
|
|
2517
|
-
* @default
|
|
2517
|
+
* @default false
|
|
2518
2518
|
*/
|
|
2519
2519
|
readonly enableScrollButtons?: boolean;
|
|
2520
|
+
/**
|
|
2521
|
+
* Clicking a task-list row scrolls that task's bar into view (nearest-edge,
|
|
2522
|
+
* horizontal + vertical), the same as calling `gantt.scrollToTask()`. Off by
|
|
2523
|
+
* default; composes with `enableSelection` (a click both selects and reveals).
|
|
2524
|
+
* @default false
|
|
2525
|
+
*/
|
|
2526
|
+
readonly scrollToTaskOnRowClick?: boolean;
|
|
2520
2527
|
/**
|
|
2521
2528
|
* Configures the undo/redo history stack. Every mutating call (drag, resize,
|
|
2522
2529
|
* inline / dialog edit, add, delete, move, dependency change) is recorded
|
|
@@ -2795,6 +2802,7 @@ declare interface InteractiveOptions {
|
|
|
2795
2802
|
readonly enableAddTaskRow: boolean;
|
|
2796
2803
|
readonly enableDrawTask: boolean;
|
|
2797
2804
|
readonly enableScrollButtons: boolean;
|
|
2805
|
+
readonly scrollToTaskOnRowClick: boolean;
|
|
2798
2806
|
readonly history: HistoryOptions;
|
|
2799
2807
|
readonly snapUnit: SnapUnit;
|
|
2800
2808
|
readonly snapValue: number;
|