Skip to content

Internationalization of text-input #102

@marfri

Description

@marfri

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions