This topic is the discussion thread for the Vaadin documentation page Handling browser events in Vaadin components.
Questions, feedback, and comments are welcome here.
This topic is the discussion thread for the Vaadin documentation page Handling browser events in Vaadin components.
Questions, feedback, and comments are welcome here.
I wish there is a list of event type here so i dont have to use ai to find out. Also i wish there is a enum of events.
\u0000
This is the "low level API" that you should generally use only to create actual components with better Java API that you then use in your application code. E.g. with Vaadin Button, you use addClickListener method instead of hooking to the click event with Element API directly. I hope AI is not guiding you to use this API all the time \uD83D\uDE2C
As the native browser events can be very varying (also includeds custom events sent by JS or webcomponents), I’m not confident if maintaining such list would be easy or event helpful \uD83E\uDD37\u200D\u2642\uFE0F In add-ons/components, I’d just create a constant in case the event type is repeated often in the code.
Ai misleading a lot. Most case it says that i should use executeJS but what i want is already in vaadin. There was a ready to use add...eventlistener(i dont rememder the exact) but since there is no list of them it was very hard to find it. I am new into vaadin and i felt like there is not enough documentation.