Skip to content

Add support for data preparation with promises on save #45

@andreybs11

Description

@andreybs11

We currently support only data preparation through a callback function pass by parameters to the save data binder.

this.saveDataBehavior = new SaveDataBinder({
component : this,
saveProxyCallback : $.proxy(proxy.save, proxy),
prepareDataToSave : this._prepareDataForRequest,
onComponentSaveSuccess : $.proxy(this._onSaveSuccess, this),
onComponentSaveError : $.noop
});

Certain scenarios may require a data preparation with promises like: third party services requesting a token/approval...

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions