onClick

fun onClick(name: String, params: EventParamsBuilder.() -> Unit? = null)

Sets onClick to an Event named name with optional typed params.

Parameters

name

the action name to dispatch.

params

optional EventParamsBuilder block supplying static params; null for none.


var onClick: <Error class: unknown class>?

Binding fired on the onclick event. Assign an Event directly, or use the onClick helper to build one with typed params.