* Sets text. * @param {string} text * @return {ViewerView} Fluent interface
(text)
| 29 | * @return {ViewerView} Fluent interface |
| 30 | */ |
| 31 | setText (text) { |
| 32 | if (this._text !== text) { |
| 33 | this._text = text |
| 34 | |
| 35 | if (this._$textarea !== null) { |
| 36 | this._$textarea.value = text |
| 37 | this.layoutTextarea() |
| 38 | } |
| 39 | } |
| 40 | return this |
| 41 | } |
| 42 | |
| 43 | /** |
| 44 | * Returns wether input is disabled. |
no test coverage detected