Function
Static Public Summary | ||
public |
modelExtend(className: string | object, protoProps: object, staticProps: object): * Provides extend functionality for Model that is compatible to the Parse SDK. |
|
public |
parseExtend(Backbone: Backbone) Provides support for older "extend" functionality in addition to adding a utility method, "getHTTPSUrl" to retrieve an HTTPS url for Parse.Object and Backbone.Model. |
|
public |
parseSync - Persists models to the server. |
Static Public
public modelExtend(className: string | object, protoProps: object, staticProps: object): * source
import modelExtend from 'backbone-parse-es6/src/modelExtend.js'
Provides extend functionality for Model that is compatible to the Parse SDK.
Return:
* | Subclass of parent class. |
public parseExtend(Backbone: Backbone) source
import parseExtend from 'backbone-parse-es6/src/parseExtend.js'
Provides support for older "extend" functionality in addition to adding a utility method, "getHTTPSUrl" to retrieve an HTTPS url for Parse.Object and Backbone.Model.
Params:
Name | Type | Attribute | Description |
Backbone | Backbone | Backbone instance |
public parseSync(method: string, model: Model | Collection, options: object): * | ParsePromise source
import parseSync from 'backbone-parse-es6/src/parseSync.js'
parseSync - Persists models to the server. (http://backbonejs.org/#Sync)
This version of sync uses Parse 1.6+ and ParseObject for Backbone.Model or Parse.Query for Backbone.Collections. You will be passed back a ParsePromise and can use it in a similar manner as one would with Parse SDK itself.
Dispatches to Model or Collection sync methods.
Return:
* | ParsePromise |