myg-form-field
v0.13.8
Published
Form fields wrap elements in a form.
Downloads
15
Readme
Form Fields
Usage
Stylesheets
@import "myg-form-field/form-field"
// Include classes (optional)
+myg__classes--form-field
Javascript
import MygFormField from 'myg-form-field';
document.addEventListener( 'ready', () => {
const mygFormFields = MygFormField.initAll( document.querySelectorAll('.myg-form-field'), {} );
})
or
import * as myg from 'myg/src/myg';
const MygFormField = myg.MygFormField;
document.addEventListener( 'ready', () => {
const mygFormFields = MygFormField.initAll( document.querySelectorAll('.myg-form-field'), {} );
})