on

fun on(retrieveJs: String? = null, preventDefault: Boolean = false): OnReceiver<Element>

See here.

Parameters

retrieveJs

A JavaScript expression that will be returned to the server in Event.retrieved when an event fires in the browser.

preventDefault

Whether preventDefault() will be called on the event object.

// @sample kweb.ValueElement.getValue

val on: OnReceiver<Element>

See here.