Hi there,
i am rather new at posting in this group and i have a question /
enhancement für the MooTools More Accordion Class.
I added a Class-Function to return the actual displayed Accordion
Element because i needed this function to store the actual active
Accordion Element in a Cookie / Session and re-use it after page
reloads.
For this this work i modified the Class ( var Accordion = Fx.Accordion
= new Class({}); ) like this:
Added option key:
------------------
options: { activeID : false }
Added function:
------------------
getActiveID: function(){ return this.options.activeID;},
Added in "display" function @ inner for loop:
------------------
this.options.activeID = hide ? this.options.activeID : i;
This way i could easily call the getActiveID() function and the active
accordion ID (0-xx) will be returned.
I have no idea if this could be done without modifing the original
code of More, so my question is:
Could i achieve this without modifing the original Code or should i
submit this small addition to some lighthouse list or is someone of
the dev's maybe doing this?
A "just a test" could be seen over here:
http://www.artness.de/area/
the Accordion to the left will auto-scale it's height to fit the CSS-
Frame height at window resize and will be redrawn using the active
element stay open.
I know, the test environment over there is not perfect code but i am
experimenting with dynamic scaling "CSS Frames" without heavy overuse
of javascript (atm only the accordion is javascript).
Opera users take care: Opera won't actually scale the Accordion as
supposed ... no clue why atm ...