* Renders field. * @protected * @return {?HTMLElement}
()
| 44 | * @return {?HTMLElement} |
| 45 | */ |
| 46 | renderField () { |
| 47 | this._$input = View.createElement('input', { |
| 48 | className: 'field-byte__input', |
| 49 | id: this.getId(), |
| 50 | type: 'text', |
| 51 | spellcheck: false, |
| 52 | onInput: this.inputValueDidChange.bind(this), |
| 53 | onFocus: evt => this.focus(), |
| 54 | onBlur: evt => this.blur() |
| 55 | }) |
| 56 | |
| 57 | const $field = super.renderField() |
| 58 | $field.classList.remove('field__field') |
| 59 | $field.classList.add('field-byte__field') |
| 60 | $field.appendChild(this._$input) |
| 61 | return $field |
| 62 | } |
| 63 | |
| 64 | /** |
| 65 | * Triggered when input value has been changed. |
nothing calls this directly
no test coverage detected