1.0.7 • Published 3 years ago
complex-control v1.0.7
complex-control
A simple way to send complex data structures to backend server
How to use?
Is very simple, follow the steps below:
- include src/ComplexControl.js in the html page
- each complex control in the page must have the class complex-control
- each complex control in the page must have a hidden field with the class complex-control-value
- each field must have a data-name attribute. This attribute act as the property name in the final structure/object
- call the helper ComplexControl.refresh() before submit your changes
- enjoy it!