* Restricts the value to the given set of Unicode code points. * @param {?number[]|string|Chain} whitelistChars Whitelist code points * @param {boolean} [revalidate=true] Wether to revalidate current value * @return {TextField} Fluent interface
(whitelistChars, revalidate = true)
| 102 | * @return {TextField} Fluent interface |
| 103 | */ |
| 104 | setWhitelistChars (whitelistChars, revalidate = true) { |
| 105 | this._whitelistChars = |
| 106 | whitelistChars !== null |
| 107 | ? Chain.wrap(whitelistChars).getCodePoints() |
| 108 | : null |
| 109 | return revalidate ? this.revalidateValue() : this |
| 110 | } |
| 111 | |
| 112 | /** |
| 113 | * Returns the blacklisted Unicode code points. |
no test coverage detected