Skip to content

An abstraction for managing a list of views. Basically, List is to Collection as View is to Model.

Notifications You must be signed in to change notification settings

segment-boneyard/list

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

list

An abstraction for managing a list of views. Basically, List is to Collection as View is to Model.

Installation

$ component install segmentio/list

Example

var list = require('list')
  , ItemView = require('./item-view');

// Later on...
var List = list(ItemView);

var view = new List()
collection.each(view.add.bind(view));

License

MIT

About

An abstraction for managing a list of views. Basically, List is to Collection as View is to Model.

Resources

Stars

Watchers

Forks

Packages

No packages published