setProperties method
setProperties(props)
Method used to set properties for this object.
- Since:
-
- 1.0
Parameters
Name | Type | Description |
---|---|---|
props | Object | The properties to set. |
Returns
Returns a promise of the RPC call response.
Tip noteFor more information regarding a promise, see http://docs.angularjs.org/api/ng.$q.
Example
var me = this;
this.backendApi.getProperties().then(function(reply){
reply.title = 'New title';
me.backendApi.setProperties(reply);
});
Did this page help you?
If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!