Skip to content

Commit aa8c475

Browse files
EventObject: Add originalEvent & Fields props (#7920) (#7972)
1 parent ea1961f commit aa8c475

File tree

2 files changed

+86
-3
lines changed

2 files changed

+86
-3
lines changed

api-reference/50 Common/Object Structures/EventObject/2 Fields/Fields.md

Lines changed: 84 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,87 @@
33
Fields that provide information about the event.
44

55
---
6-
In addition to the fields described in this section, **EventObject** contains <a href="https://developer.mozilla.org/en-US/docs/Web/Events" target="_blank">native JavaScript event</a> properties.
6+
In addition to the fields described in this section, **EventObject** contains the following [native JavaScript event](https://developer.mozilla.org/en-US/docs/Web/Events) properties:
7+
8+
<table class="multicolumn-list">
9+
<tr>
10+
<td>
11+
<ul>
12+
<li>altKey</li>
13+
<li>altitudeAngle</li>
14+
<li>azimuthAngle</li>
15+
<li>bubbles</li>
16+
<li>button</li>
17+
<li>buttons</li>
18+
<li>cancelable</li>
19+
<li>cancelBubble</li>
20+
<li>changedTouches</li>
21+
<li>char</li>
22+
<li>charCode</li>
23+
<li>clipboardData</li>
24+
</ul>
25+
</td>
26+
<td>
27+
<ul>
28+
<li>code</li>
29+
<li>composed</li>
30+
<li>ctrlKey</li>
31+
<li>defaultPrevented</li>
32+
<li>delegateTarget</li>
33+
<li>deltaMode</li>
34+
<li>deltaX</li>
35+
<li>deltaY</li>
36+
<li>deltaZ</li>
37+
<li>detail</li>
38+
<li>eventPhase</li>
39+
<li>height</li>
40+
</ul>
41+
</td>
42+
<td>
43+
<ul>
44+
<li>isComposing</li>
45+
<li>isPrimary</li>
46+
<li>key</li>
47+
<li>keyCode</li>
48+
<li>layerX</li>
49+
<li>layerY</li>
50+
<li>location</li>
51+
<li>metaKey</li>
52+
<li>movementX</li>
53+
<li>movementY</li>
54+
<li>offsetX</li>
55+
<li>offsetY</li>
56+
</ul>
57+
</td>
58+
<td>
59+
<ul>
60+
<li>pointerId</li>
61+
<li>pointerType</li>
62+
<li>pressure</li>
63+
<li>relatedTarget</li>
64+
<li>repeat</li>
65+
<li>returnValue</li>
66+
<li>srcElement</li>
67+
<li>shiftKey</li>
68+
<li>tangentialPressure</li>
69+
<li>target</li>
70+
<li>targetTouches</li>
71+
<li>tiltX</li>
72+
</ul>
73+
</td>
74+
<td>
75+
<ul>
76+
<li>tiltY</li>
77+
<li>toElement</li>
78+
<li>touches</li>
79+
<li>twist</li>
80+
<li>view</li>
81+
<li>width</li>
82+
<li>x</li>
83+
<li>y</li>
84+
</ul>
85+
</td>
86+
</tr>
87+
</table>
88+
89+
To access fields not specified in this list, utilize the [originalEvent](/Documentation/ApiReference/Common/Object_Structures/EventObject/Fields/#originalEvent) property.

api-reference/50 Common/Object Structures/EventObject/2 Fields/originalEvent.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ type: event
44
---
55
---
66
##### shortDescription
7-
<!-- Description goes here -->
7+
The [native JavaScript event](https://developer.mozilla.org/en-US/docs/Web/Events) contained in the DevExtreme event.
88

99
---
10-
<!-- Description goes here -->
10+
DevExtreme events expose native JavaScript events with the **EventObject**.**originalEvent** field. Use this field to access native event methods and [properties](/Documentation/ApiReference/Common/Object_Structures/EventObject/Fields/) not passed to the parent DevExtreme event.

0 commit comments

Comments
 (0)