@Retention(value=RUNTIME) @Target(value=PARAMETER) @Documented public @interface EventData
ComponentEvent
.
This annotation should be added to the DOM event constructor in a
ComponentEvent
, mapped using @DomEvent
. See the @
DomEvent
documentation for more information.
The annotation value()
will be evaluated as JavaScript when the
event is handled in the browser. The expression is evaluated in a context
where element
refers to the element for which the listener is
registered and event
refers to the fired event. The value of the
expression is passed back to the server and injected into the annotated
ComponentEvent
constructor parameter.
DomEvent
,
DomListenerRegistration.addEventData(String)
public abstract String value
DomListenerRegistration.addEventData(String)
Copyright © 2023. All rights reserved.