Backbone View component
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test
.gitignore
LICENSE
Makefile
Readme.md
component.json
index.js

Readme.md

backbone-view

Backbone View Component

Installation

$ component install timoxley/backbone-view

Example

var BackboneView = require('backbone-view')

var DocumentRow = BackboneView.extend({
  tagName: "li",
  className: "document-row",
  events: {
    "click .icon":          "open",
    "click .button.edit":   "openEditDialog",
    "click .button.delete": "destroy"
  },
  render: function() {
    ...
  }
});

API

See documentation for Backbone.View

Roadmap

Currently, this component depends on component/jquery, component/underscore and timoxley/backbone-events. In future I would like to phase out fat dependencies like these for more focussed components such as component/dom, component/inherit and component/emitter.

License

MIT