FORM TEMPLATE CREATOR
so, basically the idea is that I create something that creates forms, huh!
Nice, it should be.
What should be the options?
- A specific set of options (ratio, options element, autocomplete (for LOTS of options, hardest to implement))
- Boolean option
- Any choice (when the choices are free, there is an almost infinite amount of choices, like names, or quantities)
- A serial option!, that's a bonus
Each event calls a function which is supposed to do something, even if just modify the value.
Let's start by a simple boolean option, what about {type:"boolean,checkbox",text:"checkbox",onchange:function(){alert("it has changed")}}
There also will be implied properties such as isEditable (default is true) or if the text is on the left or right side of the checkbox.