final class ReactExt_ReactEvent[E <: ReactEvent] extends AnyVal
- Alphabetic
- By Inheritance
- ReactExt_ReactEvent
- AnyVal
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new ReactExt_ReactEvent(e: E)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
extract[A, B](getNow: (E) ⇒ A)(useAsync: (A) ⇒ B): B
If you want to access the event properties in an asynchronous way (eg.
If you want to access the event properties in an asynchronous way (eg. in a
modState(…)function), React will have recycled the event by the time the asynchronous call executes.This convenience function extracts a value from the event synchronously (i.e. now!) and so that it is available to the asynchronous code.
- Annotations
- @inline()
-
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
preventDefaultCB: Callback
Stops the default action of an element from happening.
Stops the default action of an element from happening. For example: Prevent a submit button from submitting a form Prevent a link from following the URL
-
def
stopPropagationCB: Callback
Stops the bubbling of an event to parent elements, preventing any parent event handlers from being executed.
-
def
toString(): String
- Definition Classes
- Any