Polymer's template system takes any attribute starting with on- (e.g. on-eventname="method") on elements in the template and adds an event listener that calls method on the host for the event named eventname. There is no whitelist of event names you can use here, so the value of any on-* attribute should be considered a method name on the host element for the template.
Polymer's template system takes any attribute starting with
on-
(e.g.on-eventname="method"
) on elements in the template and adds an event listener that callsmethod
on the host for the event namedeventname
. There is no whitelist of event names you can use here, so the value of anyon-*
attribute should be considered a method name on the host element for the template.