dom-widget
Sugar to create a widget
Example
A widget in this case is a combination of a HTML string and an JavaScript implementation.
Widget returns a function which when called will create a new elements hash from unpack-html using the given HTML template and pass it to you.
The value you return will be passed through but if it doesn't
have a view property then a view property will be set to be
elements.root
var events = var fold = var document = var console = var Widget = var html = "<div><input data-marker='foo' /></div>" var widget = var item = documentbody
Installation
npm install dom-widget
Contributors
- Raynos