trait Event extends Object
The Event interface represents any event which takes place in the DOM; some are user-generated (such as mouse or keyboard events), while others are generated by APIs (such as events that indicate an animation has finished running, a video has been paused, and so forth). There are many types of event, some of which use are other interfaces based on the main Event interface. Event itself contains the properties and methods which are common to all events.
- Annotations
- @RawJSType() @native()
- See also
https://developer.mozilla.org/en-US/docs/Web/API/Event
- Alphabetic
- By Inheritance
- Event
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
val
AT_TARGET: Int
The current event is in the target phase, i.e.
The current event is in the target phase, i.e. it is being evaluated at the event target (2)
-
val
BUBBLING_PHASE: Int
The current event phase is the bubbling phase (3)
-
val
CAPTURING_PHASE: Int
The current event phase is the capture phase (1)
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
bubbles: Boolean
Returns whether or not a specific event is a bubbling event
-
def
cancelable: Boolean
Returns whether or not an event can have its default action prevented
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
currentTarget: Element
Returns the element whose event listeners triggered the event
-
def
defaultPrevented: Boolean
Returns whether or not the preventDefault() method was called for the event
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
eventPhase: String
Returns which phase of the event flow is currently being evaluated
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hasOwnProperty(v: String): Boolean
- Definition Classes
- Object
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isPrototypeOf(v: Object): Boolean
- Definition Classes
- Object
-
def
isTrusted: Boolean
Returns whether or not an event is trusted
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
preventDefault(): Unit
Cancels the event if it is cancelable, meaning that the default action that belongs to the event will not occur
-
def
propertyIsEnumerable(v: String): Boolean
- Definition Classes
- Object
-
def
stopImmediatePropagation(): Unit
Prevents other listeners of the same event from being called
-
def
stopPropagation(): Unit
Prevents further propagation of an event during event flow
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
target: Element
Returns the element that triggered the event
-
def
timeStamp: Double
Returns the time (in milliseconds relative to the epoch) at which the event was created
-
def
toLocaleString(): String
- Definition Classes
- Object
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
type: String
Returns the name of the event
-
def
valueOf(): Any
- Definition Classes
- Object
-
def
view: Any
Returns a reference to the Window object where the event occurred TODO is this really a reference to Window?
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )