Action

sealed class Action

One thing an interaction does.

An action is what a node's event prop holds (onclick, onfocus, onblur, onchange) and what a named entry in the document's handlers region holds. A binding naming a handler runs that handler; a binding naming nothing reaches the host as an emitted event.

Inheritors

Types

Link copied to clipboard
object Companion
Link copied to clipboard
data class Emit(val name: String, val params: Map<String, <Error class: unknown class>>? = null) : Action

A named signal. In a view binding it is the reference — its name is looked up in handlers, and its params are merged into the payload the handler reads through $event. Inside a handler it is an emission: the event lands in ApplyResult.events in the order it was reached.

Link copied to clipboard
data class Sequence(val actions: List<Action>) : Action

Actions run in order against the same working state; each sees all earlier writes.