* Sets max text length. * @param {?number} maxLength Max text length * @param {boolean} [revalidate=true] Wether to revalidate current value * @return {TextField} Fluent interface
(maxLength, revalidate = true)
| 80 | * @return {TextField} Fluent interface |
| 81 | */ |
| 82 | setMaxLength (maxLength, revalidate = true) { |
| 83 | if (this._maxLength === maxLength) { |
| 84 | return this |
| 85 | } |
| 86 | this._maxLength = maxLength !== null ? parseInt(maxLength) : null |
| 87 | return revalidate ? this.revalidateValue() : this |
| 88 | } |
| 89 | |
| 90 | /** |
| 91 | * Returns the whitelisted Unicode code points. |
no test coverage detected