Package Exports
- vdom-kv-form
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (vdom-kv-form) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
vdom kv form
List of keys and values, easily editable with keyboard navigation. It's made with virtual-dom and compatible with mercury component interface.
install
$ npm install vdom-kv-formexample
var vdom = require('virtual-dom');
var h = vdom.h;
var Form = require('vdom-kv-form');
var state = Form({
rows: [
{
field: 'my field',
value: 'my value'
}
]
});
var loop = require('main-loop')( state(), Form.render, vdom );
state(loop.update);
document.getElementById('content').appendChild(loop.target);