Hierarchy (View Summary)

Constructors

Properties

attributes: any
changed: any[]
cid: string
cidPrefix: string
collection: Collection<any>
id: any
idAttribute: string
url: () => string

Returns the relative URL where the model's resource would be located on the server.

Model

urlRoot: any
validationError: any

Methods

  • Parameters

    Returns this

  • Parameters

    Returns this

  • Returns any

  • Return 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.

    Parameters

    • Optionalattributes: any

    Returns any

  • Parameters

    Returns any

  • Returns Model

  • Default 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 = { attribute: value, ... }; That works only if you set it in the constructor or the initialize method.

    Returns { location: null; name: null; url: null; uuid: null }

  • Parameters

    • attribute: string

    Returns string

  • For strongly-typed access to attributes, use the get method only privately in public getter properties.

    Type Parameters

    • a extends "name" | "url" | "uuid" | "location"

    Parameters

    • attributeName: a

    Returns ExternalProviderAttributes[a]

    get name(): string {
    return super.get("name");
    }
  • Returns string

  • Parameters

    • attribute: string

    Returns boolean

  • Parameters

    • Optionalattribute: string

    Returns boolean

  • Returns any

  • Returns boolean

  • Returns boolean

  • Parameters

    • Optionaloptions: any

    Returns boolean

  • Returns string[]

  • Parameters

    Returns this

  • Parameters

    Returns this

  • Parameters

    Returns this

  • Parameters

    Returns this

  • Parameters

    • attrs: any

    Returns boolean

  • Parameters

    • OptionaleventName: string
    • Optionalcallback: EventHandler
    • Optionalcontext: any

    Returns this

  • Parameters

    • keys: string[]

    Returns any

  • Parameters

    • ...keys: string[]

    Returns any

  • Parameters

    • fn: (value: any, key: any, object: any) => any

    Returns any

  • Parameters

    Returns this

  • Parameters

    Returns this

  • Parameters

    Returns this

  • Parameters

    Returns this

  • Returns any[]

  • Parameters

    • response: any
    • Optionaloptions: any

    Returns any

  • Parameters

    • keys: string[]

    Returns any

  • Parameters

    • ...keys: string[]

    Returns any

  • Parameters

    • fn: (value: any, key: any, object: any) => any

    Returns any

  • Parameters

    • attribute: string

    Returns any

  • Returns any[]

  • Parameters

    Returns any

  • Parameters

    • Optionalobject: any
    • Optionalevents: string
    • Optionalcallback: EventHandler

    Returns this

  • Parameters

    • ...arg: any[]

    Returns JQueryXHR

  • Returns string

  • Parameters

    • eventName: string
    • ...args: any[]

    Returns this

  • Parameters

    • OptionaleventName: string
    • Optionalcallback: EventHandler
    • Optionalcontext: any

    Returns this

  • Parameters

    • attributes: any
    • Optionaloptions: any

    Returns any

  • Returns any[]

  • Do not use, prefer TypeScript's extend functionality.

    Parameters

    • properties: any
    • OptionalclassProperties: any

    Returns any