Skip to content

Commit df2d133

Browse files
Merge pull request #39 from mlakatkou/GS-3362
[update] onbeforedrag article
2 parents adf473e + ef50dc7 commit df2d133

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

docs/api/event/onbeforedrag.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ description: "fires when the user starts the drag/resize operation (version 2.1+
1919
- `e` - (required) *Event* - a native event object
2020

2121
### Returns
22-
- ` result` - (boolean) - defines whether the default action of the event will be triggered (<b>true</b>) or canceled (<b>false</b>)
22+
- `result` - (boolean) - defines whether the default action of the event will be triggered (`true`) or canceled (`false`)
2323

2424
### Example
2525

2626
~~~jsx
27-
scheduler.attachEvent("onBeforeDrag", function (id, mode, e){
28-
//any custom logic here
27+
scheduler.attachEvent("onBeforeDrag", (id, mode, e) => {
28+
// any custom logic here
2929
return true;
3030
});
3131
~~~
@@ -36,6 +36,6 @@ scheduler.attachEvent("onBeforeDrag", function (id, mode, e){
3636

3737
### Details
3838

39-
The event fires when the user clicks inside the scheduler on the element that can be dragged.
39+
The event fires when the user clicks inside the Scheduler on the element that can be dragged.
4040

41-
For the "create" mode, the id value is not provided ( a new event is not created yet ).
41+
For the "create" mode, the `id` value is not provided, because a new event is not created yet.

0 commit comments

Comments
 (0)