demo/bundle.js
/**
               * Styles the component based on the disabled state.
               * @param {boolean} isDisabled
               * @private
               */
Styles the component based on the disabled state.
@param {boolean} isDisabled
@private
Styles the component based on the disabled state . @param { boolean } isDisabled @private
styleDisabled_(isDisabled) {
                const {DISABLED, INVALID} = MDCTextFieldFoundation.cssClasses;
                if (isDisabled) {
                  this.adapter_.addClass(DISABLED);
                  this.adapter_.removeClass(INVALID);
                } else {
                  this.adapter_.removeClass(DISABLED);
                }
                if (this.icon_) {
                  this.icon_.setDisabled(isDisabled);
                }
              }
styleDisabled_ ( isDisabled ) { const { DISABLED , INVALID } = MDCTextFieldFoundation . cssClasses ; if ( isDisabled ) { this . adapter_ . addClass ( DISABLED ) ; this . adapter_ . removeClass ( INVALID ) ; } else { this . adapter_ . removeClass ( DISABLED ) ; } if ( this . icon_ ) { this . icon_ . setDisabled ( isDisabled ) ; } }
Styles the component based on the disabled state.
Styles the component based on the disabled state .