On

value class On(attributes: MutableMap<String, String>)(source)

Typed access to the hx-on:* event handler attributes of a tag.

Report a problem

Constructors

Link copied to clipboard
constructor(attributes: MutableMap<String, String>)

Functions

Link copied to clipboard
operator fun get(event: String): String?

Returns the inline script configured for event, if any.

Link copied to clipboard
operator fun set(event: String, script: String?)

Sets the inline script to run when event fires, or removes the handler if script is null.