跳转到内容

TextInputFilter

此内容尚不支持你的语言。

const TextInputFilter: object

Defined in: sdk/src/ui/text/text-input.ts:11

Which characters a field accepts as they are typed or pasted. The rest never reach value: they are removed from the field itself, so what is on screen and what a script reads are the same.

readonly Decimal: 2 = 2

0-9, a point and a minus sign, for a number that may have a fraction or be negative.

readonly Digits: 1 = 1

Only 0-9, for a count or a price.

readonly None: 0 = 0

Anything.

readonly Phone: 3 = 3

0-9 and the characters of a phone number: + * # and -.