set disabled(val) {
    const trueVal = IdsStringUtils.stringToBool(val);

    if (trueVal) {
      this.setAttribute('disabled', val);
    } else {
      this.removeAttribute('disabled');
    }

    this.container.classList[trueVal ? 'add' : 'remove']('disabled');

    // Set disabled state on all relevant subcomponents
    const setDisabledState = (elem) => {
      elem.disabled = trueVal;
    };
    this.items.forEach(setDisabledState);
    this.textElems.forEach(setDisabledState);
  }
/**
   * @param {boolean} val sets the disabled state of the entire toolbar
   */
@param {boolean} val sets the disabled state of the entire toolbar
@param { boolean } val sets the disabled state of the entire toolbar
set disabled(val) {
    const trueVal = IdsStringUtils.stringToBool(val);
    if (trueVal) {
      this.setAttribute('disabled', val);
    } else {
      this.removeAttribute('disabled');
    }
    this.container.classList[trueVal ? 'add' : 'remove']('disabled');
    const setDisabledState = (elem) => {
      elem.disabled = trueVal;
    };
    this.items.forEach(setDisabledState);
    this.textElems.forEach(setDisabledState);
  }
set disabled ( val ) { const trueVal = IdsStringUtils . stringToBool ( val ) ; if ( trueVal ) { this . setAttribute ( 'disabled' , val ) ; } else { this . removeAttribute ( 'disabled' ) ; } this . container . classList [ trueVal ? 'add' : 'remove' ] ( 'disabled' ) ; const setDisabledState = ( elem ) => { elem . disabled = trueVal ; } ; this . items . forEach ( setDisabledState ) ; this . textElems . forEach ( setDisabledState ) ; }
@param {boolean} val sets the disabled state of the entire toolbar
@param { boolean } val sets the disabled state of the entire toolbar
// Set disabled state on all relevant subcomponents