Skip to content

Commit 552f1e8

Browse files
Merge pull request #73 from mlakatkou/GS-3313
[update] ontaskclick article
2 parents 08e6baa + 244ccd0 commit 552f1e8

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

docs/api/event/ontaskclick.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff 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-

0 commit comments

Comments
 (0)