Schedule, Coupe Mondiale International Accordion Competition, 2009 :: 7:30 PM, Pre-concert social event - To be Announced. 8:00 PM, Coupe Mondiale Digital Accordion Competition. 10:30 PM on, Festival Activity - To be Announced http://www.coupemondiale.org/2009/nz_schedule.htmHOME | Hi folks...
I have a showstopper problem that I'm trying to overcome. Simply stated, I need to fire a function any time a new Accordion pane is selected. If my read of the docs is correct, the Accordion exposes no events at all, and I've tracked back up the entire inheritance tree and none of its ancestors seems to either. Am I missing something? [2.0.2] Components inside of accordion do not fire hide/show :: 3 posts - Last post: Apr 11When an accordion is expanded/collapsed, the inner panels do not fire hide and show events. I believe that the show event should be fired http://yui-ext.com/forum/showthread.php?t=32091HOME | Accordion Yellow Pages:: concert, competition, festival, workshop, masterclass, seminar, camp. Submit new Event. (C) 2007-2008 Accordion-YellowPages. All rights reserved. http://www.accordion-yellowpages.com/addlisting.aspxHOME |
This stops me dead in my tracks frankly because I foolishly got pretty far into a project assuming such an event was available (I should have confirmed that first), but it doesn't look like I can do it. Although I can think of some hacks (like a TaskRunner with a short interval that interrogates the Accordion's activeItem property and calls my function when it's changed), but they're ugly answers to be sure and I'd like something clean and proper. Accordion Phoenix, Accordions Phoenix, Accordionist Phoenix :: Local and National Listing of Accordion Musicians/entertainers For Parties, Weddings or Event Entertainment. featuring Accordionist Phoenix, http://www.partypop.com/Categories/Accordion_Players/Phoenix.htmHOME |
Thank in advance,
Frank Zammetti
FYI, I don't know if I'm allowed to say at this point frankly, but this is for a project that would I think be very interesting to the Ext JS community... if anyone recognizes my name you can take a pretty good guess what that project is :)
Tops. It would be handy if the accordion did have a 'change' event similar to the tab panel though. I'll check it out later to see how difficult it will be to add it. Accordian Fest in Leavenworth WA:: The 2008 Leavenworth International Accordion Celebration will be an exciting event – full of talented musicians, enthusiastic music lovers, http://www.icicleinn.com/festivals/accordianfest.htmHOME |
Perfect, that works like a charm, thank you! As it turns out, while waiting for a reply I found the listeners config option, which I hadn't noticed before, and was just starting to go down that route, but you saved me the effort so I appreciate it! :)
Frank
You'd need to listen to the expand event of the child panels in the accordion, you could do something like:
myAccordion.add(myFunc('myTitle'));
function myFunc(title)
{
return new Ext.Panel(
{
title: title,
listeners: { 'expand': {fn: something, scope: foo}}
}
);
}
Heres my question?
Why would someone get bored with doing IT for 10 years?
|