File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,25 +14,24 @@ description: "fires when the user clicks on a task row in the grid area (includi
1414
1515### Parameters
1616
17- - ` id ` - (required) * string | number* - the id of the clicked task
17+ - ` id ` - (required) * string | number* - the ID of the clicked task
1818- ` e ` - (optional) * Event* - a native event object
1919
2020### Returns
21- - ` result` - (boolean) - defines whether the default action of the event will be triggered (<b >true</b >) or canceled (<b >false</b >)
21+ - ` result ` - (boolean) - defines whether the default action of the event will be triggered (<b >true</b >) or canceled (<b >false</b >)
2222
2323### Example
2424
2525~~~ jsx
26- gantt .attachEvent (" onTaskClick" , function (id ,e ) {
26+ gantt .attachEvent (" onTaskClick" , (id , e ) => {
2727 // any custom logic here
2828 return true ;
2929});
3030~~~
3131
3232### Details
3333
34- The event is blockable. Returning false will cancel the default handler (selecting a task)
34+ The event is blockable. Returning ` false ` will cancel the default handler, which selects a task.
3535
3636### Related API
3737- [ onTaskDblClick] ( api/event/ontaskdblclick.md )
38-
You can’t perform that action at this time.
0 commit comments