Skip to content

Vogel612/DynamicForm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

For now this is relatively empty, but this is supposed to become a small vanilla JS-Library to use for simple expansion of form-fields based on table-like structures with dynamic adding and removing of form fields.

Usage is simple: Bind the relevant structure to a new DynamicForm through it's (hopefully) intuitive configuration and that's it.

something dead simple as:

var df = DynamicForm(document.getElementById('df-parent-0'), {
  defaultClass : 'df-input'
}, {
  inputs: [
    {type : 'text', nametemplate : 'text'}
    , {type : 'checkbox', nametemplate : 'checkbox'}
  ]
});

becomes a beautiful form like:

in this example

About

A vanilla-JS expander for forms with a dynamic number of fields for one or multiple properties

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published