set readonly(value) {
    if (stringToBool(value)) {
      this.container.classList.add('readonly');
      this.setAttribute(attributes.READONLY, true);
      this.input.setAttribute(attributes.READONLY, true);
      this.#onStepButtonUnpressed();
      this.#incrementButton.setAttribute(attributes.DISABLED, '');
      this.#decrementButton.setAttribute(attributes.DISABLED, '');
    } else {
      this.container.classList.remove('readonly');

      this.removeAttribute(attributes.READONLY);
      this.input.removeAttribute(attributes.READONLY);

      if (!this.hasAttribute(attributes.DISABLED)) {
        this.#incrementButton.removeAttribute(attributes.DISABLED);
        this.#decrementButton.removeAttribute(attributes.DISABLED);
      }
    }
  }
/**
   * @param {boolean} value whether or not spinbox is readonly
   */
@param {boolean} value whether or not spinbox is readonly
@param { boolean } value whether or not spinbox is readonly
set readonly(value) {
    if (stringToBool(value)) {
      this.container.classList.add('readonly');
      this.setAttribute(attributes.READONLY, true);
      this.input.setAttribute(attributes.READONLY, true);
      this.#onStepButtonUnpressed();
      this.#incrementButton.setAttribute(attributes.DISABLED, '');
      this.#decrementButton.setAttribute(attributes.DISABLED, '');
    } else {
      this.container.classList.remove('readonly');
      this.removeAttribute(attributes.READONLY);
      this.input.removeAttribute(attributes.READONLY);
      if (!this.hasAttribute(attributes.DISABLED)) {
        this.#incrementButton.removeAttribute(attributes.DISABLED);
        this.#decrementButton.removeAttribute(attributes.DISABLED);
      }
    }
  }
set readonly ( value ) { if ( stringToBool ( value ) ) { this . container . classList . add ( 'readonly' ) ; this . setAttribute ( attributes . READONLY , true ) ; this . input . setAttribute ( attributes . READONLY , true ) ; this . #onStepButtonUnpressed ( ) ; this . #incrementButton . setAttribute ( attributes . DISABLED , '' ) ; this . #decrementButton . setAttribute ( attributes . DISABLED , '' ) ; } else { this . container . classList . remove ( 'readonly' ) ; this . removeAttribute ( attributes . READONLY ) ; this . input . removeAttribute ( attributes . READONLY ) ; if ( ! this . hasAttribute ( attributes . DISABLED ) ) { this . #incrementButton . removeAttribute ( attributes . DISABLED ) ; this . #decrementButton . removeAttribute ( attributes . DISABLED ) ; } } }
@param {boolean} value whether or not spinbox is readonly
@param { boolean } value whether or not spinbox is readonly