demo/bundle.js
/**
               * Styles the label to float or dock.
               * @param {boolean} shouldFloat adds float class if true, otherwise remove
               * float and shake class to dock label.
               */
Styles the label to float or dock.
@param {boolean} shouldFloat adds float class if true, otherwise remove
float and shake class to dock label.
Styles the label to float or dock . @param { boolean } shouldFloat adds float class if true otherwise remove float and shake class to dock label .
float(shouldFloat) {
                const {LABEL_FLOAT_ABOVE, LABEL_SHAKE} = MDCFloatingLabelFoundation.cssClasses;
                if (shouldFloat) {
                  this.adapter_.addClass(LABEL_FLOAT_ABOVE);
                } else {
                  this.adapter_.removeClass(LABEL_FLOAT_ABOVE);
                  this.adapter_.removeClass(LABEL_SHAKE);
                }
              }
float ( shouldFloat ) { const { LABEL_FLOAT_ABOVE , LABEL_SHAKE } = MDCFloatingLabelFoundation . cssClasses ; if ( shouldFloat ) { this . adapter_ . addClass ( LABEL_FLOAT_ABOVE ) ; } else { this . adapter_ . removeClass ( LABEL_FLOAT_ABOVE ) ; this . adapter_ . removeClass ( LABEL_SHAKE ) ; } }
Styles the label to float or dock.
Styles the label to float or dock .