Class ClickTrigger

java.lang.Object
com.vaadin.flow.component.trigger.AbstractTrigger
com.vaadin.flow.component.trigger.ClickTrigger
All Implemented Interfaces:
Trigger, Serializable

public class ClickTrigger extends AbstractTrigger
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 Details

  • Constructor Details

    • ClickTrigger

      public ClickTrigger(Element host)
      Creates a click trigger bound to the given host.
      Parameters:
      host - the element whose click event should fire this trigger, not null
    • ClickTrigger

      public ClickTrigger(Component host)
      Creates a click trigger bound to the given component's root element.
      Parameters:
      host - the component whose click event should fire this trigger, not null