1.0.6 • Published 7 years ago

mithril-form-parser v1.0.6

Weekly downloads
42
License
MIT
Repository
github
Last release
7 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

7 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

9 years ago

1.0.0

9 years ago