demo/bundle.js
/**
               * Styles the component based on the validity state.
               * @param {boolean} isValid
               * @private
               */
Styles the component based on the validity state.
@param {boolean} isValid
@private
Styles the component based on the validity state . @param { boolean } isValid @private
styleValidity_(isValid) {
                const {INVALID} = MDCTextFieldFoundation.cssClasses;
                if (isValid) {
                  this.adapter_.removeClass(INVALID);
                } else {
                  this.adapter_.addClass(INVALID);
                }
                if (this.helperText_) {
                  this.helperText_.setValidity(isValid);
                }
              }
styleValidity_ ( isValid ) { const { INVALID } = MDCTextFieldFoundation . cssClasses ; if ( isValid ) { this . adapter_ . removeClass ( INVALID ) ; } else { this . adapter_ . addClass ( INVALID ) ; } if ( this . helperText_ ) { this . helperText_ . setValidity ( isValid ) ; } }
Styles the component based on the validity state.
Styles the component based on the validity state .