Thursday, November 13, 2008

Adding events to widgets

Well in gxt, if a component or a widget doesnot have an event that is required to handle then the developer can actually add the event to the DOM and then can handle it. The el method of the widget should be called first and then try to add the events to the Events list using the l.el().addEventsSunk(Event.ONCLICK);
The Event class is the one in GWT. 
And then the event handler can be handled for this event as a regular listener.

No comments: