There was an error while loading. Please reload this page.
1 parent 0eb2c87 commit 702fc03Copy full SHA for 702fc03
1 file changed
2-ui/2-events/05-dispatch-events/article.md
@@ -15,11 +15,14 @@
15
let event = new Event(type[, options]);
16
```
17
18
-پارامتر ها:
+Arguments:
19
20
-- *نوع*: event type, یک رشته مانند `"click"` .
21
-- *گزینه ها*: شی ای با دو ویژگی اختیاری.
22
-- *لغو شدن (true/false)*: اگر ویزگی مقدار true را داشت عمل پیش فرض آن لغو میشود،
+- *type* -- event type, a string like `"click"` or our own like `"my-event"`.
+- *options* -- the object with two optional properties:
+ - `bubbles: true/false` -- if `true`, then the event bubbles.
23
+ - `cancelable: true/false` -- if `true`, then the "default action" may be prevented. Later we'll see what it means for custom events.
24
+
25
+ By default both are false: `{bubbles: false, cancelable: false}`.
26
27
## dispatchEvent
28
0 commit comments