1.0.6 • Published 6 years ago

mithril-form-parser v1.0.6

Weekly downloads
42
License
MIT
Repository
github
Last release
6 years ago

Mithril Form Parser

A parser for mithril forms using the virtual dom

var formParser = require('mithril-form-parser')

module.exports = {
  view: function(vnode) {
    return m('form', {
      onsubmit: function(evt) {
        evt.preventDefault()
        vnode.attrs.onsubmit(evt, formParser(vnode))
      }
    })
  }
}
1.0.6

6 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago