class EventListener[Ev <: Event, Out] extends Binder[Base]
- Alphabetic
- By Inheritance
- EventListener
- Binder
- Modifier
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new EventListener(eventProcessor: EventProcessor[Ev, Out], callback: (Out) => Unit)
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
- final def apply(element: Base): Unit
- Definition Classes
- Binder → Modifier
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- 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
- EventListener → Binder
- val callback: (Out) => Unit
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- 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.
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- val eventProcessor: EventProcessor[Ev, Out]
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- EventListener → AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])