forms-js web component
forms-js web component adapter
This project is under development and is not ready for use. Please checkout the code and look at the issue tracker if you want to contribute
-
Install froms-js web component using npm or Bower
npm install forms-js-web-component
bower install forms-js-webcomponent
-
Use HTML Import
In your
<head>
:<link rel="import" href="forms-js-webcomponent/dist/index.html">
-
Use FormsJS element in HTML or programmability
HTML
<form is="forms-js" model="{/*..*/}" view="{/*..*/}" validation="{/*..*/}"></form>
JavaScript
var aForm = new formsjs.FormElement(); aForm.model = aModel; aForm.validation = aValidation; aForm.view = aView; document.body.appendChild(aForm);
##API
FormsJS inherits from HTMLFormElement
.
TODO
TODO
TODO
Returns a FormData
object from data inputed into the form
Make sure you have npm and Gulp installed. Following commands are available:
Make a new build
Starts a server and watches for changes to reload the browser.
Run the tests
Runs the tests and watches for changes in code to re-run the tests.
MIT