Styling Native Input In Polymer 2.x?
I am trying to implement this answer. Is there any way to bind an on-click or on-tap event of a to either of the following hidden input elements? my-form.html
Solution 1:
You don't really need those hidden inputs, as <iron-form>
provides an API for the equivalent events. Namely, <iron-form>.submit()
and <iron-form>.reset()
:
// <iron-form id="form">_reset() {
this.$.form.reset();
}
_submit() {
this.$.form.submit();
}
Post a Comment for "Styling Native Input In Polymer 2.x?"