rx/presenters

View on GitHub
views/mdc/assets/js/components/form-fields.js

Summary

Maintainability
A
0 mins
Test Coverage
// This is used to get a proper binding of the actionData
// https://stackoverflow.com/questions/750486/javascript-closure-inside-loops-simple-practical-example
import {VBaseContainer} from './base-container';
import {hookupComponents} from './base-component';
import {MDCFormField} from '@material/form-field';

export function initFormFields(e) {
    console.debug('\tForm Fields');
    hookupComponents(e, '.v-form-field', VFormField, MDCFormField);
}

export class VFormField extends VBaseContainer {
    constructor(element, mdcComponent) {
        super(element, mdcComponent);
    }
}