I have this code (Polymer 3/TS), and I can not put event to fire inside a
template! Anyone can help!
class LangueageMenu extends LitElement {
//...
render() {
return html `
<vaadin-context-menu open-on="click">
<template id='tmpl'>
<vaadin-list-box>
<vaadin-item id='en' @click="${(_event) => alert('en')}">English</
vaadin-item> <<-- DO NOT WORK
<vaadin-item on-click="_es">EspaƱol</vaadin-item> <<-- DO NOT WORK
</vaadin-list-box>
</template>
<paper-icon-button on-click="" icon="more-vert"></paper-icon-button>
</vaadin-context-menu>
`;
}
_es() {
// no not work
}
}
Follow Polymer on Google+: plus.google.com/107187849809354688692
---
You received this message because you are subscribed to the Google Groups
"Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/polymer-dev/4d42dcfe-0c53-4ba8-a013-390cbe1b7a67%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.