You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/api/internal/intercept-method.md
+6-3Lines changed: 6 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,14 +15,17 @@ description: You can learn about the intercept method in the documentation of th
15
15
~~~jsx
16
16
api.intercept(
17
17
event: string,
18
-
callback:function
18
+
callback:function,
19
+
config?: { tag?: number | string | symbol }
19
20
): void;
20
21
~~~
21
22
22
23
### Parameters
23
24
24
-
- `event` - (required) an event to be fired
25
+
- `event` - (required) an event to be fired
25
26
- `callback` - (required) a callback to be performed (the callback arguments will depend on the event to be fired)
27
+
- `config` - (optional) an object that stores the following parameter:
28
+
- `tag` - (optional) an action tag. You can use the tag name to remove an action handler via the [`detach`](api/internal/js_kanban_detach_method.md) method
26
29
27
30
### Events
28
31
@@ -59,7 +62,7 @@ const table = new pivot.Pivot("#root", {
Copy file name to clipboardExpand all lines: docs/api/internal/on-method.md
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,14 +15,18 @@ description: You can learn about the on method in the documentation of the DHTML
15
15
~~~jsx
16
16
api.on(
17
17
event: string,
18
-
handler:function
18
+
handler:function,
19
+
config?: { intercept?: boolean, tag?: number | string | symbol }
19
20
): void;
20
21
~~~
21
22
22
23
### Parameters
23
24
24
25
- `event` - (required) an event to be fired
25
26
- `handler` - (required) a handler to be attached (the handler arguments will depend on the event to be fired)
27
+
- `config` - (optional) an object that stores the following parameters:
28
+
- `intercept` - (optional) if you set `intercept: true` during event listener creation, this event listener will run before all others
29
+
- `tag` - (optional) an action tag. You can use the tag name to remove an action handler via the [`detach`](api/internal/js_kanban_detach_method.md) method
0 commit comments