Bixby Developer Center

References

mask

optionalvalue required

Checks if text matches a mask pattern for text-input, which will only allow certain characters in pre-defined slots.

Example

mask ("(100) 000-0000") {
guide (true)
placeholder-char ("#")
}

The following list defines the symbols used in the mask parameter:

  • 0 - Number [0-9]
  • 1 - Number [1-9]
  • a - Letter
  • A - Letter, forced to upper case when entered
  • * - Alphanumeric
  • # - Alphanumeric, forced to upper case when entered

The following are examples of symbols:

  • ‘(100) 000-0000’ for US phone number.
  • ‘A0A 0A0’ for Canadian zip code.

Child Keys

guide
optional
Boolean
placeholder-char
optional
Placeholder character for masks