allowedCharPattern

A pattern matched against individual characters the user inputs.

When set, the field will prevent:

  • keydown events if the entered key doesn't match /^allowedCharPattern$/

  • paste events if the pasted text doesn't match /^allowedCharPattern*$/

  • drop events if the dropped text doesn't match /^allowedCharPattern*$/

For example, to allow entering only numbers and minus signs, use: allowedCharPattern = "[\\d-]"