Annotation Interface ClientCallable


@Retention(RUNTIME) @Target(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.

Annotated methods are also published from superclasses, and from default methods of implemented interfaces. An annotated abstract interface method is not published: annotate the method that implements it instead.

Since:
1.0
Author:
Vaadin Ltd
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Controls RPC for the method from the client side to the server side when the element is disabled.
  • Element Details

    • value

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

      If the method overrides another annotated method, the value of the most specific declaration is used.

      Returns:
      the property update mode for disabled element
      Default:
      ONLY_WHEN_ENABLED