What is the better solution to format/restrict *-input entry in Polymer 1.0

Issue

I would like to know if exists best practices to format and restrict on *-input elements entry in Polymer 1.0.

For example:

  • Number/Currency = ‘999.999.999,99’
  • Date = ‘dd/mm/yyyy’

    1. Is there a pattern default to guarantee that entry just number, comma and points?
    2. Is there some form to format the display, similar to expressions filter in OLD-Polymer?

Solution

iron-input supports an allowed-pattern attribute https://elements.polymer-project.org/elements/iron-input

Answered By – Günter Zöchbauer

Answer Checked By – Jay B. (FlutterFixes Admin)

Leave a Reply

Your email address will not be published.