Package kweb.html.events

Types

Event
Link copied to clipboard
data class Event(type: String, retrieved: JsonElement)
Corresponds to a JavaScript event object.
EventGenerator
Link copied to clipboard
interface EventGenerator<T>
Something that event listeners can be attached to, such as an kweb.Element or a kweb.html.Document
KeyboardEvent
Link copied to clipboard
data class KeyboardEvent(type: String, detail: Long, key: String, altKey: Boolean, ctrlKey: Boolean, code: String, location: Int, metaKey: Boolean, shiftKey: Boolean, locale: String?, isComposing: Boolean, retrieved: JsonElement)
Corresponds to a JavaScript event object.
MouseEvent
Link copied to clipboard
data class MouseEvent(type: String, detail: Long, altKey: Boolean, button: Int, buttons: Int, clientX: Int, clientY: Int, ctrlKey: Boolean, metaKey: Boolean, movementX: Int?, movementY: Int?, region: String?, screenX: Int, screenY: Int, shiftKey: Boolean, x: Int, y: Int, retrieved: JsonElement)
Corresponds to a JavaScript event object.
OnImmediateReceiver
Link copied to clipboard
class OnImmediateReceiver<T : EventGenerator<T>>(source: T)
OnReceiver
Link copied to clipboard
class OnReceiver<T : EventGenerator<T>>(source: T, retrieveJs: String?, preventDefault: Boolean)

Functions

main
Link copied to clipboard
fun main()