✨ Introduce on click event on task

This commit is contained in:
AzureAD\CaliceLEFEVRE committed 2022-02-22 16:35:56 +01:00
1 parent 016fbd2257
commit e38fc8f37e
7 files changed
+21

No files matched your search

+1
View File
@@ -6,6 +6,7 @@ export type GanttContentMoveAction =
| "mouseleave"
| "delete"
| "dblclick"
| "click"
| "select"
| ""
| BarMoveAction;
+4
View File
@@ -44,6 +44,10 @@ export interface EventOption {
* Invokes on bar double click.
*/
onDoubleClick?: (task: Task) => void;
/**
* Invokes on bar click.
*/
onClick?: (task: Task) => void;
/**
* Invokes on end and start time change. Chart undoes operation if method return false or error.
*/