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 ObjectHash

  • 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 "street" | "date" | "id" | "approved" | "location" | "creatorUserId"

    Parameters

    • attributeName: a

    Returns VenueImageAttributes[a]

    get name(): string {
    return super.get("name");
    }
  • 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

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

    Parameters

    Returns void

  • Parameters

    • attribute: string

    Returns any

  • Returns any[]

  • Parameters

    Returns any

  • For strongly-typed assignment of attributes, use the set method only privately in public setter properties.

    Type Parameters

    • a extends "street" | "date" | "id" | "approved" | "location" | "creatorUserId"

    Parameters

    Returns Model

    set name(value: string) {
    super.set("name", value);
    }
  • For strongly-typed assignment of attributes, use the set method only privately in public setter properties.

    Parameters

    Returns Model

    set name(value: string) {
    super.set("name", value);
    }
  • For strongly-typed assignment of attributes, use the set method only privately in public setter properties.

    Type Parameters

    • a extends "street" | "date" | "id" | "approved" | "location" | "creatorUserId"

    Parameters

    Returns Model

    set name(value: string) {
    super.set("name", value);
    }
  • Parameters

    • approved: boolean

    Returns void

  • Parameters

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

    Returns this

  • Parameters

    • ...arg: any[]

    Returns JQueryXHR

  • 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