Comments (3)
The reason for that is because top menu items are of type com.google.gwt.dom.client.AnchorElement, so they have no such method as addEventListener. The submenus are of type com.vaadin.polymer.paper.PaperItemElement which happen to have addEventListener.
is there a better solution?
from gwt-app-archetypes.
Use an Anchor
widget? .cast()
the AnchorElement
into a Vaadin EventTarget
? Use a Vaadin element or EventTarget
as the @UiField
?
from gwt-app-archetypes.
I am going to give it a try. Are there any recommendations against using Event.setEventListener
?
from gwt-app-archetypes.
Related Issues (8)
- You don't need build-helper-maven-plugin HOT 1
- README instructions are missing archetypeCatalog HOT 1
- dagger-compiler included in the WAR, should be optional or have scope provided HOT 1
- All compiled classes end up in WAR, but there's only client-side code. HOT 1
- GWT Activities is useless in those archetypes HOT 1
- Web resources need cleanup HOT 2
- Enabling SSL on Spring Boot breaks this! HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gwt-app-archetypes.