Options accepted by the alpha validation rule. Controls which additional characters are allowed in alphabetic validation.
const options: AlphaOptions = { allowSpaces: true, allowUnderscores: false, allowDashes: true} Copy
const options: AlphaOptions = { allowSpaces: true, allowUnderscores: false, allowDashes: true}
Optional
Whether to allow space characters
Whether to allow underscore characters
Whether to allow dash/hyphen characters
Options accepted by the alpha validation rule. Controls which additional characters are allowed in alphabetic validation.
Example