gown.js icon indicating copy to clipboard operation
gown.js copied to clipboard

Internationalization of text-input

Open marfri opened this issue 7 years ago • 0 comments

Additions to GOWN.TextInput

  • [ ] 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.

marfri avatar Apr 10 '17 14:04 marfri