Polymer 1.0 中 format/restrict *-input 条目的更好解决方案是什么

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

我想知道在 Polymer 1.0 中是否存在格式化和限制 *-input 元素条目的最佳实践。

例如:

iron-input 支持 allowed-pattern 属性 https://elements.polymer-project.org/elements/iron-input