@Retention(value=RUNTIME) @Target(value=TYPE) @Documented @Inherited public @interface DomEvent
ComponentEvent.
Marking a ComponentEvent class with @DomEvent will cause the
ComponentEvent to be fired whenever the DOM event occurs.
A ComponentEvent class mapped with @DomEvent must have a
special constructor which is invoked by the framework when creating and
firing a ComponentEvent based on a DOM event.
Component.
EventData,
telling the framework which part of the DOM event data object to map to the
parameter.
EventData,
Element.addEventListener(String, com.vaadin.flow.dom.DomEventListener,
String...)| Modifier and Type | Required Element and Description |
|---|---|
String |
value
The name of the DOM event which should fire the annotated component
event.
|
| Modifier and Type | Optional Element and Description |
|---|---|
DisabledUpdateMode |
allowUpdates
Controls RPC for the listener when the element is disabled.
|
DebounceSettings |
debounce
The debounce settings to use with this event.
|
String |
filter
The filter expression to run in the browser to determine whether fired
events should be passed to the server.
|
public abstract String value
public abstract DisabledUpdateMode allowUpdates
DomListenerRegistration.setDisabledUpdateMode(DisabledUpdateMode)public abstract String filter
DomListenerRegistration.setFilter(String)public abstract DebounceSettings debounce
DomListenerRegistration.debounce(int,
com.vaadin.flow.dom.DebouncePhase,
com.vaadin.flow.dom.DebouncePhase...)Copyright © 2025. All rights reserved.