Skip to content

timoxley/backbone-view

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Backbone View component

Resources

License

Stars

Watchers

Forks

Packages

No packages published