The onBrowserEvent method of an abstract cell returns a parent element. If I have multiple HTML items rendered within the cell, such as spans or divs, how do I get and distinguish which one triggered the event?
相关问题
- Stop child process when parent process stops
- Fire resize event once not based on timing
- How to run GWT in production mode
- C# CS0079 Event Handling Compile Errors
- Google Maps event listeners not working properly i
相关文章
- What does it means in C# : using -= operator by ev
- How are custom broadcast events implemented in Jav
- Spring NamespaceHandler issue when launching Maven
- Programming a touch screen application with SWING
- How many pixels are scrolled on a website with a m
- Difference Between RoutedEventHandler and EventHan
- Wait for function till user stops typing
- WPF- validation error event doesn't fire
NativeEvent#getEventTarget()
will give you the exact element that fired the event. You can then walk up until you find an element with some discriminant (e.g. a specific CSS class name), or walk down from theparent
element and useElement#isOrHasChild()
.Have a look at how
CompositeCell
dispatches the event to the appropriate cell,or howButtonCell
checks that you clicked the button inside the cell.