The component will seamlessly add cool metro looks to input boxes, buttons, file inputs, checkboxes, radiobuttons and dropdowns.
Please, view the source on this page and use your browser's developer tools for better insight on the operation, customization, API and usage of AcidJs.Forms
The API of AcidJs.Forms includes three methods -
update()method is related to the custom event of the component, so you can check it here.
Use these methods to enable/disable (i.e. remove/add the
state/attribute from an array of elements. The array should
name attributes of the elements
that will be enabled/disabled.
The API of AcidJs.Forms implements one custom event -
"acidjs-forms-domchanged", bound to the
of each instance of the component. You can trigger this event
any time you have inserted new form elements, which need to be
styled. For example, you can trigger
"acidjs-forms-domchanged" event after an AJAX call.
Click the button below to make an AJAX call, which will load
more form controls to the form, then on
trigger the "acidjs-forms-domchanged" event to style these new controls.
You can trigger the
"acidjs-forms-domchanged" event also by
update() method of the class.
AcidJs.Forms could be initialized not just when page loads, but also asynchronously - for example after ajax requests or DOM changes.