Trait

io.scalajs.dom

Event

Related Doc: package dom

Permalink

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

Linear Supertypes
Object, Any, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Event
  2. Object
  3. Any
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. val AT_TARGET: Int

    Permalink

    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)

  5. val BUBBLING_PHASE: Int

    Permalink

    The current event phase is the bubbling phase (3)

  6. val CAPTURING_PHASE: Int

    Permalink

    The current event phase is the capture phase (1)

  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def bubbles: Boolean

    Permalink

    Returns whether or not a specific event is a bubbling event

  9. def cancelable: Boolean

    Permalink

    Returns whether or not an event can have its default action prevented

  10. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def currentTarget: Element

    Permalink

    Returns the element whose event listeners triggered the event

  12. def defaultPrevented: Boolean

    Permalink

    Returns whether or not the preventDefault() method was called for the event

  13. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  14. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  15. def eventPhase: String

    Permalink

    Returns which phase of the event flow is currently being evaluated

  16. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  18. def hasOwnProperty(v: String): Boolean

    Permalink
    Definition Classes
    Object
  19. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  20. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  21. def isPrototypeOf(v: Object): Boolean

    Permalink
    Definition Classes
    Object
  22. def isTrusted: Boolean

    Permalink

    Returns whether or not an event is trusted

  23. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  24. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  25. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  26. def preventDefault(): Unit

    Permalink

    Cancels the event if it is cancelable, meaning that the default action that belongs to the event will not occur

  27. def propertyIsEnumerable(v: String): Boolean

    Permalink
    Definition Classes
    Object
  28. def stopImmediatePropagation(): Unit

    Permalink

    Prevents other listeners of the same event from being called

  29. def stopPropagation(): Unit

    Permalink

    Prevents further propagation of an event during event flow

  30. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  31. def target: Element

    Permalink

    Returns the element that triggered the event

  32. def timeStamp: Double

    Permalink

    Returns the time (in milliseconds relative to the epoch) at which the event was created

  33. def toLocaleString(): String

    Permalink
    Definition Classes
    Object
  34. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  35. def type: String

    Permalink

    Returns the name of the event

  36. def valueOf(): Any

    Permalink
    Definition Classes
    Object
  37. def view: Any

    Permalink

    Returns a reference to the Window object where the event occurred TODO is this really a reference to Window?

  38. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped