View.extend

extendBackbone.View.extend(properties, [classProperties]) Get started with views by creating a custom view class. You'll want to

2016-04-17 12:21:51
view.el

elview.el All views have a DOM element at all times (the el property), whether they've already been inserted into the page

2016-04-17 12:21:50
view.attributes

attributesview.attributes A hash of attributes that will be set as HTML DOM element attributes on the view's el (id

2016-04-17 12:21:49
view

$ (jQuery)view.$(selector) If jQuery is included on the page, each view has a $ function that runs queries scoped within the

2016-04-17 12:21:49
view.remove

removeview.remove() Removes a view and its el from the DOM, and calls

2016-04-17 12:21:51
View

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

2016-04-17 12:21:48
view.render

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

2016-04-17 12:21:51
view.setElement

setElementview.setElement(element) If you'd like to apply a Backbone view to a different DOM element, use setElement, which

2016-04-17 12:21:51
view.

$elview.$el A cached jQuery object for the view's element. A handy reference instead of re-wrapping the DOM element all the time

2016-04-17 12:21:49
view.undelegateEvents

undelegateEventsundelegateEvents() Removes all of the view's delegated events. Useful if you want to disable or remove a view from

2016-04-17 12:21:52