Widget properties

Global variable and functions available in widget client and server scripts.

Server script global objects

Property Description
input An object containing client-side properties set under c.data. The value is undefined until the client controller calls c.server.update().
data An object containing properties set during server-side execution.
options An object containing the schema option properties.

Client script global functions

Property Description
this.server.get([Object]) Calls the server and sends custom input. Returns Promise.
this.server.update() Calls the server and posts this.data to the server script. Returns Promise.
this.server.refresh() Calls the server and automatically replaces the current options and data from the server response. Returns Promise.

A promise represents the eventual result of an asynchronous operation. For more information on promises, see https://promisesaplus.com/ or AngularJS documentation.