JsEvent

kreuzberg.JsEvent
See theJsEvent companion object
case class JsEvent(componentId: Option[Identifier], name: String, preventDefault: Boolean, capture: Boolean)

A JavaScript DOM Event

Value parameters

capture

if true, the event will be captured.

componentId

the component ID, if not given, it's a window event.

name

name of the event

preventDefault

if true, preventDefault will be called on it

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def collect[F](f: PartialFunction[Event, F]): EventSource[F]
Implicitly added by toJsEventSource

Collect values.

Collect values.

Attributes

Inherited from:
EventSource
def filter(f: Event => Boolean): EventSource[Event]
Implicitly added by toJsEventSource

Filters the value

Filters the value

Attributes

Inherited from:
EventSource
def handle[T >: Event](f: T => Unit): EventBinding[T]
Implicitly added by toJsEventSource

Attach a handler

Attach a handler

Attributes

Inherited from:
EventSource
def handleAny(f: => Unit): EventBinding[Any]
Implicitly added by toJsEventSource

Attach a handler, discarding the value.

Attach a handler, discarding the value.

Attributes

Inherited from:
EventSource
def hook(f: Event => Unit): EventSource[Event]
Implicitly added by toJsEventSource

Just hook in some code.

Just hook in some code.

Attributes

Inherited from:
EventSource
def map[F](f: Event => F): EventSource[F]
Implicitly added by toJsEventSource

Map the value

Map the value

Attributes

Inherited from:
EventSource
def or[T >: Event](source: EventSource[T]): EventSource[T]
Implicitly added by toJsEventSource

Combine with some other event source.

Combine with some other event source.

Attributes

Inherited from:
EventSource
def productElementNames: Iterator[String]
Implicitly added by toJsEventSource

Attributes

Inherited from:
Product
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]
Implicitly added by toJsEventSource

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product