* Renders content. * @protected * @return {BrickView} Fluent interface
()
| 82 | * @return {BrickView} Fluent interface |
| 83 | */ |
| 84 | renderContent () { |
| 85 | this._$textarea = View.createElement('textarea', { |
| 86 | className: 'viewer-text__textarea', |
| 87 | ariaLabel: 'Content', |
| 88 | spellcheck: false, |
| 89 | value: this._text, |
| 90 | onInput: this.textareaValueDidChange.bind(this), |
| 91 | onFocus: evt => this.focus(), |
| 92 | onBlur: evt => this.blur() |
| 93 | }) |
| 94 | |
| 95 | if (this.isDisabled()) { |
| 96 | this._$textarea.disabled = 'disabled' |
| 97 | } |
| 98 | |
| 99 | const $content = super.renderContent() |
| 100 | $content.appendChild(this._$textarea) |
| 101 | return $content |
| 102 | } |
| 103 | |
| 104 | /** |
| 105 | * Triggered when textarea value changed. |
nothing calls this directly
no test coverage detected