OnReceiver

class OnReceiver<T : EventGenerator<T>>(source: T, retrieveJs: String?, preventDefault: Boolean)

Types

Companion
Link copied to clipboard
object Companion

Functions

abort
Link copied to clipboard
fun abort(callback: (event: Event) -> Unit): T
afterprint
Link copied to clipboard
fun afterprint(callback: (event: Event) -> Unit): T
beforeprint
Link copied to clipboard
fun beforeprint(callback: (event: Event) -> Unit): T
beforeunload
Link copied to clipboard
fun beforeunload(callback: (event: Event) -> Unit): T
blur
Link copied to clipboard
fun blur(callback: (event: Event) -> Unit): T
change
Link copied to clipboard
fun change(callback: (event: Event) -> Unit): T
click
Link copied to clipboard
fun click(callback: (event: MouseEvent) -> Unit): T
contextmenu
Link copied to clipboard
fun contextmenu(callback: (event: MouseEvent) -> Unit): T
copy
Link copied to clipboard
fun copy(callback: (event: Event) -> Unit): T
cut
Link copied to clipboard
fun cut(callback: (event: Event) -> Unit): T
dblclick
Link copied to clipboard
fun dblclick(callback: (event: MouseEvent) -> Unit): T
drag
Link copied to clipboard
fun drag(callback: (event: Event) -> Unit): T
dragend
Link copied to clipboard
fun dragend(callback: (event: Event) -> Unit): T
dragenter
Link copied to clipboard
fun dragenter(callback: (event: Event) -> Unit): T
dragleave
Link copied to clipboard
fun dragleave(callback: (event: Event) -> Unit): T
dragover
Link copied to clipboard
fun dragover(callback: (event: Event) -> Unit): T
dragstart
Link copied to clipboard
fun dragstart(callback: (event: Event) -> Unit): T
drop
Link copied to clipboard
fun drop(callback: (event: Event) -> Unit): T
error
Link copied to clipboard
fun error(callback: (event: Event) -> Unit): T
event
Link copied to clipboard
inline fun <U : Any> event(eventName: String, crossinline callback: (U) -> Unit): T
fun event(eventName: String, returnEventFields: Set<String> = emptySet(), callback: (event: JsonElement) -> Unit): T
focus
Link copied to clipboard
fun focus(callback: (event: Event) -> Unit): T
focusin
Link copied to clipboard
fun focusin(callback: (event: Event) -> Unit): T
focusout
Link copied to clipboard
fun focusout(callback: (event: Event) -> Unit): T
hashchange
Link copied to clipboard
fun hashchange(callback: (event: Event) -> Unit): T
input
Link copied to clipboard
fun input(callback: (event: Event) -> Unit): T
invalid
Link copied to clipboard
fun invalid(callback: (event: Event) -> Unit): T
keydown
Link copied to clipboard
fun keydown(callback: (event: KeyboardEvent) -> Unit): T
keypress
Link copied to clipboard
fun keypress(callback: (event: KeyboardEvent) -> Unit): T
keyup
Link copied to clipboard
fun keyup(callback: (event: KeyboardEvent) -> Unit): T
load
Link copied to clipboard
fun load(callback: (event: Event) -> Unit): T
mousedown
Link copied to clipboard
fun mousedown(callback: (event: MouseEvent) -> Unit): T
mouseenter
Link copied to clipboard
fun mouseenter(callback: (event: MouseEvent) -> Unit): T
mouseleave
Link copied to clipboard
fun mouseleave(callback: (event: MouseEvent) -> Unit): T
mousemove
Link copied to clipboard
fun mousemove(callback: (event: MouseEvent) -> Unit): T
mouseout
Link copied to clipboard
fun mouseout(callback: (event: MouseEvent) -> Unit): T
mouseover
Link copied to clipboard
fun mouseover(callback: (event: MouseEvent) -> Unit): T
mouseup
Link copied to clipboard
fun mouseup(callback: (event: MouseEvent) -> Unit): T
pagehide
Link copied to clipboard
fun pagehide(callback: (event: Event) -> Unit): T
pageshow
Link copied to clipboard
fun pageshow(callback: (event: Event) -> Unit): T
paste
Link copied to clipboard
fun paste(callback: (event: Event) -> Unit): T
popstate
Link copied to clipboard
fun popstate(callback: (event: Event) -> Unit): T
reset
Link copied to clipboard
fun reset(callback: (event: Event) -> Unit): T
resize
Link copied to clipboard
fun resize(callback: (event: Event) -> Unit): T
scroll
Link copied to clipboard
fun scroll(callback: (event: Event) -> Unit): T
search
Link copied to clipboard
fun search(callback: (event: Event) -> Unit): T
select
Link copied to clipboard
fun select(callback: (event: Event) -> Unit): T
selectionchange
Link copied to clipboard
fun selectionchange(callback: (event: Event) -> Unit): T
selectstart
Link copied to clipboard
fun selectstart(callback: (event: Event) -> Unit): T
submit
Link copied to clipboard
fun submit(callback: (event: Event) -> Unit): T
unload
Link copied to clipboard
fun unload(callback: (event: Event) -> Unit): T

Properties

preventDefault
Link copied to clipboard
val preventDefault: Boolean
source
Link copied to clipboard
val source: T

Extensions

keySpecificKeyup
Link copied to clipboard
fun OnReceiver<Element>.keySpecificKeyup(callback: (event: KeyboardEvent) -> Unit): Element