Hi folks, is it possible do define a field's mask through domain? Eg. for numbers: 1000000 => 1.000.000 ?; for phone: +43123456789 => (+43) 123 456 789 ? Thansks, Tomas |
For numbers, you can use numberMask attribute of textField. "#,###" would work for your case. If you want to use dots instead of commas as thousand seperator, you should define a language for your app in IDE with thousand & decimal seperators are set to "." and ",". For phone numbers, you can use formattedField with format="(+##) ### ### ###" but keep in mind that it only accepts values in correct format. So setting its value to +43123456789 will not work. If you are asking for different formatting bahaviours for the same component, than its not possible. |