Hi all,
I'm trying to hook onto the event where the user clicks the little '+'
button on one of the panels in an accordion. Thus far I've been able
to get my code listening to the click event of a panel inside the
accordion, but this only gets triggered when the user clicks on the
title area of the item. What I'm really trying to achieve is to get a
hook onto the expand event, so that I can execute some code whenever
an item in the accordion is expanded, regardless of whether the user
clicked the little '+' button or the title of the item.
Here's the code I'm currently using to hook onto the click ('panel' is
a panel that has been added to the accordion):
panel.addListener(new ContainerListenerAdapter(){
public void onRender(Component component) {
panel.getEl().addListener("click", new EventCallback(){
public void execute(EventObject e) {
MessageBox.alert("Panel clicked");
}
});
}
});
Any help is much appreciated.
Cheers, Bryce.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"GWT-Ext Developer Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/gwt-ext?hl=en
-~----------~----~----~----~------~----~------~--~---