setInput(value: string) {
    if (this.input instanceof HTMLInputElement) {
      this.input.value = value;
    } else if (this.input.isContentEditable) {
      this.input.textContent = value;
    } else {
      throw new Error(errors.invalidInput);
    }
  }
Sets an input string
@function setInput
@param {string} value the string to set
@throws {Error} If The current <code>input</code> is no <code>&lt;input&gt;</code> or <code>contenteditable</code>
@memberOf holmes