toggle menu
kweb-core
1.4.12
jvm
switch theme
search in API
kweb-core
/
kweb.html.events
/
EventGenerator
Event
Generator
interface
EventGenerator
<
T
>
(
source
)
Something that event listeners can be attached to, such as an
kweb.Element
or a
kweb.html.Document
Inheritors
Element
Document
Window
Members
Properties
browser
Link copied to clipboard
abstract
val
browser
:
WebBrowser
Functions
add
Event
Listener
Link copied to clipboard
abstract
fun
addEventListener
(
eventName
:
String
,
returnEventFields
:
Set
<
String
>
=
Collections.emptySet()
,
retrieveJs
:
String
?
,
preventDefault
:
Boolean
,
callback
:
(
JsonElement
)
->
Unit
)
:
T
add
Immediate
Event
Code
Link copied to clipboard
abstract
fun
addImmediateEventCode
(
eventName
:
String
,
jsCode
:
String
)