gantt-task-react
Advanced tools
Comparing version 0.3.4 to 0.3.5
@@ -13,3 +13,3 @@ import { Task, TaskType } from "./public-types"; | ||
handleWidth: number; | ||
barChildren: number[]; | ||
barChildren: BarTask[]; | ||
styles: { | ||
@@ -16,0 +16,0 @@ backgroundColor: string; |
@@ -48,7 +48,7 @@ /// <reference types="react" /> | ||
*/ | ||
onDateChange?: (task: Task) => void | boolean | Promise<void> | Promise<boolean>; | ||
onDateChange?: (task: Task, children: Task[]) => void | boolean | Promise<void> | Promise<boolean>; | ||
/** | ||
* Invokes on progress change. Chart undoes operation if method return false or error. | ||
*/ | ||
onProgressChange?: (task: Task) => void | boolean | Promise<void> | Promise<boolean>; | ||
onProgressChange?: (task: Task, children: Task[]) => void | boolean | Promise<void> | Promise<boolean>; | ||
/** | ||
@@ -55,0 +55,0 @@ * Invokes on delete selected task. Chart undoes operation if method return false or error. |
{ | ||
"name": "gantt-task-react", | ||
"version": "0.3.4", | ||
"version": "0.3.5", | ||
"description": "Interactive Gantt Chart for React with TypeScript.", | ||
@@ -5,0 +5,0 @@ "author": "MaTeMaTuK <maksym.vikarii@gmail.com>", |
@@ -71,12 +71,12 @@ # gantt-task-react | ||
| Parameter Name | Type | Description | | ||
| :----------------- | :---------------------------------------------------------- | :-------------------------------------------------------------------------------------- | | ||
| onSelect | (task: Task, isSelected: boolean) => void | Specifies the function to be executed on the taskbar select or unselect event. | | ||
| onDoubleClick | (task: Task) => void | Specifies the function to be executed on the taskbar onDoubleClick event. | | ||
| onDelete\* | (task: Task) => void/boolean/Promise<void>/Promise<boolean> | Specifies the function to be executed on the taskbar on Delete button press event. | | ||
| onDateChange\* | (task: Task) => void/boolean/Promise<void>/Promise<boolean> | Specifies the function to be executed when drag taskbar event on timeline has finished. | | ||
| onProgressChange\* | (task: Task) => void/boolean/Promise<void>/Promise<boolean> | Specifies the function to be executed when drag taskbar progress event has finished. | | ||
| timeStep | (task: Task) => number | A time step value for onDateChange. Specify in milliseconds. | | ||
| Parameter Name | Type | Description | | ||
| :----------------- | :---------------------------------------------------------------------------- | :-------------------------------------------------------------------------------------- | | ||
| onSelect | (task: Task, isSelected: boolean) => void | Specifies the function to be executed on the taskbar select or unselect event. | | ||
| onDoubleClick | (task: Task) => void | Specifies the function to be executed on the taskbar onDoubleClick event. | | ||
| onDelete\* | (task: Task) => void/boolean/Promise<void>/Promise<boolean> | Specifies the function to be executed on the taskbar on Delete button press event. | | ||
| onDateChange\* | (task: Task, children: Task[]) => void/boolean/Promise<void>/Promise<boolean> | Specifies the function to be executed when drag taskbar event on timeline has finished. | | ||
| onProgressChange\* | (task: Task, children: Task[]) => void/boolean/Promise<void>/Promise<boolean> | Specifies the function to be executed when drag taskbar progress event has finished. | | ||
| timeStep | (task: Task) => number | A time step value for onDateChange. Specify in milliseconds. | | ||
\* Chart undoes operation if method return false or error. | ||
\* Chart undoes operation if method return false or error. Parameter children returns one level deep records. | ||
@@ -139,3 +139,3 @@ ### DisplayOption | ||
| project | string | Task project name | | ||
| hideChildren | bool | Hide children items. | | ||
| hideChildren | bool | Hide children items. Parameter works with project type only | | ||
@@ -142,0 +142,0 @@ \*Required |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
590901
5055