Skip to content

Higher level views built on reactive for Fend.js

Notifications You must be signed in to change notification settings

Frapwings/fendjs-view

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

View

Higher level views built on reactive.

Installation

$ component install component/view

API

View()

Initialize a view with the given obj / el.

 function ItemView(item) {
   View.call(this, item, tmpl.cloneNode(true));
 }

View#bind(str:String, method:String)

Bind to an event with the given str, and invoke method:

 this.bind('click .remove', 'remove')
 this.bind('click .complete', 'complete')
 this.bind('dblclick .info a', 'showDetails')

View#unbind([str]:String)

Unbind all listeners, all for a specific event, or a specific combination of event / selector.

 view.unbind()
 view.unbind('click')
 view.unbind('click .remove')
 view.unbind('click .details')

License

MIT

About

Higher level views built on reactive for Fend.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published