Nothing, Plus More

    vdom-kv-form

    0.0.8 • Public • Published

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

    Install

    npm i vdom-kv-form

    DownloadsWeekly Downloads

    2

    Version

    0.0.8

    License

    ISC

    Last publish

    Collaborators

    • nichoth