on

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

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.


See here.