MCPcopy Create free account
hub / github.com/cryptii/cryptii / setMinLength

Method setMinLength

src/Field/Text.js:60–66  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

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.

Callers 1

constructorMethod · 0.95

Calls 1

revalidateValueMethod · 0.80

Tested by

no test coverage detected