onAction
fun <T : Any> Modifier.onAction(key: ActionKey<T>, callback: UiSession.(T) -> ActionResult): Modifier(source)
Handles one typed component action emitted by the component wrapped by this modifier.
Return
this chain with one appended active action handler.
Parameters
key
referential action key shared with the emitting component.
callback
synchronous owner-thread handler that decides whether delivery continues.