com.vaadin.flow.component.polymertemplate.

Annotation Type EventHandler


  • @Retention(value=RUNTIME)
     @Target(value=METHOD)
     @Documented
    public @interface EventHandler

    Publishes the annotated method so it can be invoked from the client side as template event handlers. Recommend using LitTemplate instead of PolymerTemplate as Polymer will be deprecated in the next LTS version.

    Since:

    1.0

    Author:

    Vaadin Ltd

    See Also:

    EventData

    • Optional Element Summary

      Optional Elements
      Modifier and Type Optional Element and Description
      DisabledUpdateMode value

      Controls event handling for the method from the client side to the server side when the element is disabled.

    • Element Detail

      • value

        public abstract DisabledUpdateMode value

        Controls event handling for the method from the client side to the server side when the element is disabled.

        Returns:

        the property update mode for disabled element

        Default:

        com.vaadin.flow.dom.DisabledUpdateMode.ONLY_WHEN_ENABLED