EventTransformable

kreuzberg.EventTransformable

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait EventSource[E]
object Assembled
class ChannelSource[E]
class Js[E]
class OrSource[E]
class PostTransformer[E, O]
class Timer
trait EventTransformer[I, O]
class AddEffect[I, E]
class AddState[I, S]
class And[I]
class Chained[I, X, O]
class Collect[I, O]
class Empty[I]
class Map[I, O]
class Tapped[I]
class TryUnpack1[E]
class TryUnpack2[I, E]
Show all

Members list

Type members

Inherited types

type WithSink[G]

A Sink applied.

A Sink applied.

Attributes

Inherited from:
EventSinkApplicationDsl

Event Transformer applied.

Event Transformer applied.

Attributes

Inherited from:
EventTransformationDsl

Value members

Inherited methods

inline def changeModel[T >: E, M](model: Model[M])(f: (T, M) => M): WithSink[T]

Shortcut for building event bindings

Shortcut for building event bindings

Attributes

Inherited from:
EventSinkApplicationDsl
inline def changeModelDirect[T >: E, M](model: Model[M])(f: M => M): WithSink[T]

Change model without caring about the value of the event.

Change model without caring about the value of the event.

Attributes

Inherited from:
EventSinkApplicationDsl
inline def collect[F](f: PartialFunction[E, F]): WithTransformer[F]

Attributes

Inherited from:
EventTransformationDsl
inline def doNothing[T >: E]: WithSink[T]

Do nothing (e.g. some events already have an effect just because they are registered, e.g. Drag and Drop events with preventDefault)

Do nothing (e.g. some events already have an effect just because they are registered, e.g. Drag and Drop events with preventDefault)

Attributes

Inherited from:
EventSinkApplicationDsl
inline def effect[F >: E, R](op: F => Effect[R]): WithTransformer[(F, Try[R])]

Add some effect.

Add some effect.

Attributes

Inherited from:
EventTransformationDsl
inline def executeCode[T >: E](f: T => Unit): WithSink[T]

Execute custom Code.

Execute custom Code.

Attributes

Inherited from:
EventSinkApplicationDsl
inline def filter[F >: E](f: F => Boolean): WithTransformer[F]

Attributes

Inherited from:
EventTransformationDsl
inline def future[F >: E, R](op: F => ExecutionContext ?=> Future[R]): WithTransformer[(F, Try[R])]

Add some future.

Add some future.

Attributes

Inherited from:
EventTransformationDsl
inline def handleErrors[F](sink: EventSink[Throwable])(implicit ev: E => Try[F]): WithTransformer[F]

If e is a Try[T], handle errors using another sink.

If e is a Try[T], handle errors using another sink.

Attributes

Inherited from:
EventTransformationDsl
inline def intoModel[T >: E](model: Model[T]): WithSink[T]

Change model without caring about the previous value of the model.

Change model without caring about the previous value of the model.

Attributes

Inherited from:
EventSinkApplicationDsl
inline def intoProperty[T >: E, D <: ScalaJsElement](prop: JsProperty[D, T]): WithSink[T]

Write a value into a property

Write a value into a property

Attributes

Inherited from:
EventSinkApplicationDsl
inline def map[F](f: E => F): WithTransformer[F]

Attributes

Inherited from:
EventTransformationDsl
inline def mapUnit: WithTransformer[Unit]

Throw away any data.

Throw away any data.

Attributes

Inherited from:
EventTransformationDsl
inline def recoverWith[F, R](f: Throwable => F)(implicit ev: E => Try[F]): WithTransformer[F]

Recover a Try-Event source into something useful.

Recover a Try-Event source into something useful.

Attributes

Inherited from:
EventTransformationDsl
inline def recoverWith2[A, F, R](f: Throwable => F)(implicit ev: E => (A, Try[F])): WithTransformer[(A, F)]

Recovers the most right part of a pair.

Recovers the most right part of a pair.

Attributes

Inherited from:
EventTransformationDsl
inline def second[F >: E, A, B](using ev: F => (A, B)): WithTransformer[B]

Take the second value of a Pair.

Take the second value of a Pair.

Attributes

Inherited from:
EventTransformationDsl
inline def setModelTo[T >: E, M](model: Model[M], value: M): WithSink[T]

Set the model to a value without caring about the value of the event or model before

Set the model to a value without caring about the value of the event or model before

Attributes

Inherited from:
EventSinkApplicationDsl
inline def state[F >: E, S](from: RuntimeState[S]): WithTransformer[(F, S)]

Add some runtime state.

Add some runtime state.

Attributes

Inherited from:
EventTransformationDsl
inline def tap[T >: E](fn: T => Unit): WithTransformer[T]

Execute code while traversing the source.

Execute code while traversing the source.

Attributes

Inherited from:
EventTransformationDsl
def to[T >: E](sink: EventSink[T]): WithSink[T]

Connect this source to a sink

Connect this source to a sink

Attributes

Inherited from:
EventSinkApplicationDsl
inline def trigger[T >: E](channel: Channel[T]): WithSink[T]

Trigger some channel.

Trigger some channel.

Attributes

Inherited from:
EventSinkApplicationDsl
inline def withEffect[F >: E, R](op: F => Effect[R]): WithTransformer[Try[R]]

Replace with effect data.

Replace with effect data.

Attributes

Inherited from:
EventTransformationDsl
inline def withFuture[F >: E, R](op: F => ExecutionContext ?=> Future[R]): WithTransformer[Try[R]]

Replace with future result.

Replace with future result.

Attributes

Inherited from:
EventTransformationDsl
inline def withState[S](from: RuntimeState[S]): WithTransformer[S]

Replace with runtime state.

Replace with runtime state.

Attributes

Inherited from:
EventTransformationDsl
def withTransformer[Q](transformer: EventTransformer[E, Q]): WithTransformer[Q]

Attributes

Inherited from:
EventTransformationDsl