Have the option to have it flip threw automatically until user action. Option to stop on: hover, click, both, none, ect... Adding in a play/pause button at the top to show the state it's in and to allow user to restart the show if desired.
Have the option to have it flip threw automatically until user action. Option to stop on: hover, click, both, none, ect... Adding in a play/pause button at the top to show the state it's in and to allow user to restart the show if desired.
Comments
Comment #1
manuel garcia commentedIt's a challenging idea. I'll see what I can do, but it can get messy ;)
Comment #2
manuel garcia commentedI've committed to CVS the changes that allows this feature. It also includes another feature to have Close All - Open All links, and a minor bug fix.
It will be in the latest development release once the script runs again and generates the updated package.
Please help with testing if you are not a coder, it really helps :)
Comment #3
mikeytown2 commentedWorks as expected for the most part :)
Here are some more suggestions to go along with this
It would be nice if the Accordion was placed inside a div. Reason: Give it a css height property, so it won't move the content below. I guess you could use the views div for that. To go along with this, use jQuery to add up the hight of largest (or first if not possible) pane http://docs.jquery.com/CSS/height. If first, add in an additional height field to the view config, so user can add in the additional px needed to make the accordion not move the contents below the view.
The stop/play text changed based on it's current state. Would probably require 3 states - Play (no mouseover), Paused (mouseover), Stop (user clicked stop btn)
Thanks for implementing this feature!
Comment #4
manuel garcia commentedI like the idea of the paused state, I'll see what I can do.
However, for the height issue, i think it's a matter of adding some css yourself, this is a module to provide the functionality, it does not attempt to fit everyone's need, nor should it. Everyone has different needs about how to use the accordion. For example, some people use it with field grouping, other people might use it for images, or what not. I cannot predict every case, so I have to settle on providing functionality, and enough classes for you to finish the job.
You can use indeed the div from the view itself to do this if you want, I would also recommend setting a fixed height and overflow: auto to .views-accordion-item .accordion-content - it will get you the fixed height accordion that you want.
Comment #5
manuel garcia commentedI've committed the change to the js file that provides a paused status when the user moves his mouse over the accordion. Note that the strings for all buttons are passed through Drupal.t() which allows for translation ( go to /admin/build/translate/search )