Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
stream of submission events for form controls
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
examples
test
.gitignore
.npmignore
.testem.json
.travis.yml
LICENCE
README.md
index.js
package.json

README.md

submissions

dependency status

browser support

stream of submission events for form controls

Example

var submissions = require("submissions")
var html = require("unpack-html")
var fold = require("reducers/fold")

var template = require("./template.html")
var elements = html(template)

document.body.appendChild(elements.root)

// get a reducible representation of all submission events
var stream = submissions(elements)

// the chunk is the state of the form controls in elements
fold(stream, function (chunk) {
    console.log("got submission chunk", chunk)
})

Submission events are hitting ENTER on inputs and clicking buttons.

When a submission event occurs it gives you the form-data state of the elements at that time.

Installation

npm install submissions

Contributors

  • Raynos

MIT Licenced

Something went wrong with that request. Please try again.