Packages

class EventListener[Ev <: Event, Out] extends Binder[Base]

Linear Supertypes
Binder[Base], Modifier[Base], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. EventListener
  2. Binder
  3. Modifier
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new EventListener(eventProcessor: EventProcessor[Ev, Out], callback: (Out) => Unit)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def apply(element: Base): Unit
    Definition Classes
    Binder → Modifier
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def bind(element: Base): DynamicSubscription

    This method is used by onMountBind to cancel this subscription on unmount

    This method is used by onMountBind to cancel this subscription on unmount

    Definition Classes
    EventListenerBinder
  7. val callback: (Out) => Unit
  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  9. val domCallback: Function1[Ev, Unit]

    To make sure that you remove the event listener successfully in JS DOM, you need to provide the same Javascript callback function that was originally added as a listener.

    To make sure that you remove the event listener successfully in JS DOM, you need to provide the same Javascript callback function that was originally added as a listener. However, the implicit conversion from a Scala function to a JS function creates a new JS function every time, so we would never get referentially equal JS functions if we used the Scala-to-JS conversion more than once. Therefore, we need to perform that conversion only once and save the result. This method encapsulates such conversion.

  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  12. val eventProcessor: EventProcessor[Ev, Out]
  13. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  14. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  19. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  20. def toString(): String
    Definition Classes
    EventListener → AnyRef → Any
  21. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  22. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  23. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. val domValue: Function1[Ev, Unit]
    Annotations
    @deprecated
    Deprecated

    (Since version 0.12.0) Renamed: Use domCallback instead of domValue

  2. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from Binder[Base]

Inherited from Modifier[Base]

Inherited from AnyRef

Inherited from Any

Ungrouped