Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions articles/flow/create-ui/element-api/client-server-rpc.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ You can use it anywhere in your client-side Polymer class implementation, and yo
- enumeration type which is addressed via a string value from the client-side JavaScript; and
- `TemplateModel` property types (see <</flow/create-ui/templates/polymer/model-bean#,Using Beans with a PolymerTemplate Model>>).

A `null` argument is received as Java `null` (not [classname]`JsonNull`), or as the default value for primitive parameters.

The client-side method returns a Promise, which is resolved asynchronously with the return value from the server, or `null` if the server-side return type is `void`. You can wait for the result using [methodname]`Promise.then()`. In an `async` function, the `await` keyword can also be used to wait for the result.

This example uses [methodname]`this.$server.getGreeting()` to call a server-side method and `await` the result:
Expand Down