Class ClickTrigger
java.lang.Object
com.vaadin.flow.component.trigger.AbstractTrigger
com.vaadin.flow.component.trigger.ClickTrigger
- All Implemented Interfaces:
Trigger,Serializable
Fires when the host element receives a
click DOM event. The bound
actions run inside the click handler, preserving the browser's user-gesture
context (so downstream actions may invoke APIs gated on a gesture, such as
clipboard or fullscreen).- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionClickTrigger(Component host) Creates a click trigger bound to the given component's root element.ClickTrigger(Element host) Creates a click trigger bound to the given host. -
Method Summary
Methods inherited from class com.vaadin.flow.component.trigger.AbstractTrigger
buildClientConfig, getHost, getTriggerId, getTypeId, remove, triggers, triggers
-
Field Details
-
TYPE_ID
- See Also:
-
-
Constructor Details
-
ClickTrigger
Creates a click trigger bound to the given host.- Parameters:
host- the element whose click event should fire this trigger, notnull
-
ClickTrigger
Creates a click trigger bound to the given component's root element.- Parameters:
host- the component whose click event should fire this trigger, notnull
-