Skip to content
This repository has been archived by the owner on May 2, 2019. It is now read-only.

Latest commit

 

History

History
38 lines (24 loc) · 579 Bytes

Readme.md

File metadata and controls

38 lines (24 loc) · 579 Bytes

forms

create forms dynamically by providing a JSON schema

Installation

$ component install nickjackson/forms

Spec

wiki/Spec

Todo

  • Add component/Model support?
  • Add Date/Calendar functionality
  • Add Tests
  • Validation

API

var form = new Form(schema);

Creates new Form object based on schema object

form.render()

Renders form

form.setValue({})

Fills in rendered form with data given

### form.getValue() Returns object of current values

form.view

Rendered DOM

License

MIT