A simple way to send complex data structures to backend server
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!