Optional
context: anyOptional
context: anyReturn an object containing all the attributes that have changed, or false if there are no changed attributes. Useful for determining what parts of a view need to be updated and/or what attributes need to be persisted to the server. Unset attributes will be set to undefined. You can also pass an attributes object to diff against the model, determining if there would be a change.
Optional
attributes: anyOptional
options: SilenceableDefault attributes for the model. It can be an object hash or a method returning an object hash.
For assigning an object hash, do it like this: this.defaults =
Optional
options: ModelDestroyOptionsOptional
options: ModelFetchOptionsOptional
attribute: stringOptional
attributes: TOptional
options: anyOptional
options: anyOptional
eventName: stringOptional
callback: EventHandlerOptional
context: anyOptional
context: anyOptional
context: anyOptional
context: anyOptional
context: anyOptional
options: anyFor use with models as ES classes. If you define a preinitialize method, it will be invoked when the Model is first created, before any instantiation logic is run for the Model.
Optional
attributes: TOptional
options: anyOptional
attributes: anyOptional
options: ModelSaveOptionsOptional
object: anyOptional
events: stringOptional
callback: EventHandlerOptional
options: anyOptional
eventName: stringOptional
callback: EventHandlerOptional
context: anyOptional
options: SilenceableOptional
options: anyStatic
extendDo not use, prefer TypeScript's extend functionality.
Optional
classProperties: any
Returns the relative URL where the model's resource would be located on the server.