View
  • References/JavaScript/Backbone/View

constructor / initializenew View([options]) There are several special options that, if passed, will be attached directly to the view:

2025-01-10 15:47:30
model.escape
  • References/JavaScript/Backbone/Model

escapemodel.escape(attribute) Similar to get, but returns

2025-01-10 15:47:30
model.get
  • References/JavaScript/Backbone/Model

getmodel.get(attribute) Get the current value of an attribute from the model. For example: note.get("title")

2025-01-10 15:47:30
view.render
  • References/JavaScript/Backbone/View

renderview.render() The default implementation of render is a no-op. Override this function with your code that renders the

2025-01-10 15:47:30
model.set
  • References/JavaScript/Backbone/Model

setmodel.set(attributes, [options]) Set a hash of attributes (one or many) on the model. If any of the attributes change the model's

2025-01-10 15:47:30
model.sync
  • References/JavaScript/Backbone/Model

syncmodel.sync(method, model, [options]) Uses Backbone.sync

2025-01-10 15:47:30
collection.invoke
  • References/JavaScript/Backbone/Collection

invoke

2025-01-10 15:47:30
model.id
  • References/JavaScript/Backbone/Model

idmodel.id A special property of models, the id is an arbitrary string (integer id or UUID). If you set the id in the

2025-01-10 15:47:30
collection.parse
  • References/JavaScript/Backbone/Collection

parsecollection.parse(response, options) parse is called by Backbone whenever a collection's models are returned by the server

2025-01-10 15:47:30
add event
  • References/JavaScript/Backbone/Events

"add" (model, collection, options) â when a model is added to a collection.

2025-01-10 15:47:30