JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q47816F
  • License ISC

virtual-dom component for an editable list of keys and values

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

demo

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-form

example

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);