Skip to main content
Participant
July 12, 2007
Question

Spry Configuration

  • July 12, 2007
  • 1 reply
  • 2999 views
Can anyone help me regarding the spry objects in dreamweaver. I wish to have a couple of collapsable panels on a web page, however, when the page is opened I would like the panels to be collapsed rather than the first open and the second collapsed, if all that makes sense? I could use the same intention on the accordian object, does the settings relate to both objects?
I can't find any setting in the css file, maybe it is in the js file????
Any help on this would be greatly appreciated....
This topic has been closed for replies.

1 reply

July 16, 2007
In Dreamweaver CS3 when you have a Spry Collapsilbe Panel in you page you should be able to click on the blue tab to get the Property Inspector for that object. In the Property Inspector you can change the initial state from opened to closed.

If you want to hand code, the JS for this looks like:
var CollapsiblePanel1 = new Spry.Widget.CollapsiblePanel("CollapsiblePanel1", {contentIsOpen:false});

HTH,
Chris
Adobe Dreamweaver Engineering
Participating Frequently
January 14, 2013

Hi Chris,

I can't find the initial state option in the properties inspector. Is this still correct for newer versions of dreamweaver?

Alternatively, where do I put the code that you've set out?

Thanks.