EventSinkApplicationDsl

kreuzberg.EventSinkApplicationDsl

DSL Methods which apply a sink

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

Types

type WithSink[G]

A Sink applied.

A Sink applied.

Attributes

Value members

Abstract methods

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

Connect this source to a sink

Connect this source to a sink

Attributes

Concrete 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

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

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

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

Execute custom Code.

Execute custom Code.

Attributes

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

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

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

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

Trigger some channel.

Trigger some channel.

Attributes