* Sets min text length. * @param {?number} minLength Min text length * @param {boolean} [revalidate=true] Wether to revalidate current value * @return {TextField} Fluent interface
(minLength, revalidate = true)
| 58 | * @return {TextField} Fluent interface |
| 59 | */ |
| 60 | setMinLength (minLength, revalidate = true) { |
| 61 | if (this._minLength === minLength) { |
| 62 | return this |
| 63 | } |
| 64 | this._minLength = minLength !== null ? parseInt(minLength) : null |
| 65 | return revalidate ? this.revalidateValue() : this |
| 66 | } |
| 67 | |
| 68 | /** |
| 69 | * Returns max text length. |
no test coverage detected