forked from massive-oss/haxe-react
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathSyntheticEvent.hx
More file actions
27 lines (24 loc) · 833 Bytes
/
SyntheticEvent.hx
File metadata and controls
27 lines (24 loc) · 833 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package react;
import js.html.Event;
import js.html.EventTarget;
/**
https://facebook.github.io/react/docs/events.html
**/
extern class SyntheticEvent<NativeEvent>
{
public var bubbles(default, null):Bool;
public var cancelable(default, null):Bool;
public var currentTarget(default, null):EventTarget;
public var defaultPrevented(default, null):Bool;
public var eventPhase(default, null):Int;
public var isTrusted(default, null):Bool;
public var nativeEvent(default, null):NativeEvent;
public var target(default, null):EventTarget;
public var timeStamp(default, null):Date;
public var type(default, null):String;
public function preventDefault():Void;
public function isDefaultPrevented():Bool;
public function stopPropagation():Void;
public function isPropagationStopped():Bool;
public function persist():Void;
}