[ ] Add type attribute which accept ‘text’ and ‘number’
[ ] depending on type only respective inputs are allowed (type == text: All input allowed, type == number: only numbers are accepted, if text is tried to enter nothing changes).
[ ] Add flag acceptComma that is only used when type == ‘number’ that determines if the textfield accepts comma instead of dot (123.456 or 123,456). If acceptComma == true only comma is accepted and displayed as seperator, no a dot. It should only be possible to enter one seperator. No other separators (like per thousand comma).
[ ] Numbers written into the textfield via API / code should be parsed accordingly.
Additions to
GOWN.TextInput
type
attribute which accept ‘text’ and ‘number’acceptComma
that is only used when type == ‘number’ that determines if the textfield accepts comma instead of dot (123.456 or 123,456). If acceptComma == true only comma is accepted and displayed as seperator, no a dot. It should only be possible to enter one seperator. No other separators (like per thousand comma).