EventType

sealed interface EventType

The event that triggered a dispatch. The four inbuilt kinds map to a node's typed bindings (onclick/onfocus/onblur/onchange); Custom carries an arbitrary event name emitted by a custom component via ComponentScope.emit.

Inheritors

Types

Link copied to clipboard
data object Blur : EventType

The inbuilt blur event, mapping to a node's onblur binding.

Link copied to clipboard
data object Change : EventType

The inbuilt change event, mapping to a node's onchange binding.

Link copied to clipboard
data object Click : EventType

The inbuilt click event, mapping to a node's onclick binding.

Link copied to clipboard
object Companion
Link copied to clipboard
data class Custom(val name: String) : EventType

A custom event named by a component, e.g. emit("rate")Custom("rate").

Link copied to clipboard
data object Focus : EventType

The inbuilt focus event, mapping to a node's onfocus binding.