Function
| Static Public Summary | ||
| public |
findCaretPosition(maskedValue: String, mask: String): * Given the masked string , find the next caret position depending on what is missing to complete the mask |
|
| public |
generatePatternFromMask(mask: String): String Generate a regex patter based on the give task |
|
| public |
isMaskedValue(value: String, mask: String): Boolean Check if the given value is masked with the given mask or not |
|
| public |
maskIfNotMasked(value: String, mask: String): String Mask the given value with the given mask in case the value is not already masked with the given mask |
|
| public |
Unmask the given value |
|
Static Public
public findCaretPosition(maskedValue: String, mask: String): * source
import {findCaretPosition} from 'basis-input-masking/src/TextInput/tools.js'Given the masked string , find the next caret position depending on what is missing to complete the mask
Return:
| * |
public generatePatternFromMask(mask: String): String source
import {generatePatternFromMask} from 'basis-input-masking/src/TextInput/tools.js'Generate a regex patter based on the give task
Params:
| Name | Type | Attribute | Description |
| mask | String | bbj string mask |
public isMaskedValue(value: String, mask: String): Boolean source
import {isMaskedValue} from 'basis-input-masking/src/TextInput/tools.js'Check if the given value is masked with the given mask or not
public maskIfNotMasked(value: String, mask: String): String source
import {maskIfNotMasked} from 'basis-input-masking/src/TextInput/tools.js'Mask the given value with the given mask in case the value is not already masked with the given mask
