Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

I am using the Spry Accordion How can I make it so that all panels appear as a default of closed?

Guest
Jan 14, 2010 Jan 14, 2010

I have gone through the documentation and am unable to find a way to set the default value of the panels to closed. I have looked at the java script file of the spry and have changed some null values to true and some to but this has no effect. I have seen this spry used in other sites and the panels are closed at the on set when the page is called. I would like any help  you could give me thank you.

TOPICS
Extensions
560
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 14, 2010 Jan 14, 2010
LATEST

Hi

I have answered this in your post the the general section of the forum, but for others looking in this section, here it is again.


At the bottom of your page -

<script type="text/javascript">
<!--
var Accordion1 = new Spry.Widget.Accordion("Accordion1", { enableAnimation: false, useFixedPanelHeights: false, defaultPanel: -1 });
//-->
</script>

PZ

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines