Are there any libraries for auto-shaping of less attractive forms in json format? That is, the json file prototype is parsed and forms are formed with input, etc. Which can already be quickly linked to the database or storage.
2 answers
Well, yes there are interesting generators from which you can take the logic, or use them yourself.
A small list:
|
I do not know what “attractive forms” are for you, but there is such a library for generation: http://www.alpacajs.org/demos/form-builder/form-builder.html
$('#div').alpaca({ "schema": { "type": "object", "properties": { "email": { "type": "string", "required": false }, "password": { "type": "string", "required": false, "pattern": {} }, "file": { "type": "string", "required": false }, "check": { "type": "boolean", "required": false, "default": true } } }, "options": { "fields": { "email": { "type": "text", "label": "Email Address" }, "password": { "type": "password", "label": "Password" }, "file": { "type": "file", "label": "File Upload" }, "check": { "type": "checkbox", "rightLabel": "Sign me up for the News Letter!", "label": "Newsletter" } }, "focus": false }, "data": { "email": "Joe Smith", "password": "MyPassword" } }); |