Skip to content

Latest commit

 

History

History
47 lines (33 loc) · 1.15 KB

Readme.md

File metadata and controls

47 lines (33 loc) · 1.15 KB

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