08-31-2011 10:44 AM
Accordion panel, Expandable Panel, Outlook style Nav Panel, or whatever you want to call it....
I've been searching all over and found many people looking for functionality similar to what I'm trying to achieve, but the consensus seems to be that there's just no way to do it with the built in API's. I'm sure it's possible (and seems like it would be useful to a lot of people), to create a custom version.
Before I start coding from scratch, I just figured I'd check and see if anyone has already created one and wouldn't mind sharing it with the community?
So just to clarify, the exact functionality I was looking to achieve would look/function like a TreeField that could have parents of 1 row height, and children of another. And it would still be collapsible/expandable. I know this is just not possible with the existing TreeField, so I'm looking for the best alternative.
In one very closely related thread, peter_strange helped to create something that looked like what I'm looking for, but just without the collapsibility of the sections.
I was thinking this could be made a bit more generic by having each label/parent catch the click/touch event and have it show/hide a child 'panel' that could be of any height, and could also manage any other field types. So within that panel, you could have a list of the objects in that category. And when the parent is collapsed, the rest of the sibling nodes are moved up correctly (just like the TreeField does).
It would be great to get something like this neatly (and efficiently) wrapped into a single custom field class. It would obviously be easier if someone has already worked out some of the kinks in something like this. If no one has done this, I welcome any thoughts/suggestions about doing it in the best/most efficient way. Would extending TreeField be the best place to start in order to inherit as much of that functionality as possible?
08-31-2011 11:17 AM - edited 08-31-2011 11:21 AM
I think I have something similar to what you are looking for, but it is built on a custom field/manager framework. PM me and I'll send you a copy of the application that currently uses it for you to look and see.
Also, if you are looking for a field like the messages app (also mentioned in that thread), I have a custom field for that as well in an application that I am working on.