com.vaadin.flow.component.

Annotation Type ClientCallable


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

    Publishes the annotated method so it can be invoked from the client side using the notation this.$server.method(). The method will return a Promise which will be resolved with either the return value from the server or a generic rejection if the server-side method throws an exception.

    Since:

    1.0

    Author:

    Vaadin Ltd

    • Optional Element Summary

      Optional Elements
      Modifier and Type Optional Element and Description
      DisabledUpdateMode value

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

    • Element Detail

      • value

        public abstract DisabledUpdateMode value

        Controls RPC 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