DMXzone Tabs Support Product Page

Answered

Set default tab in DMXzone tabs

Asked 26 Feb 2013 07:41:35
1
has this question
26 Feb 2013 07:41:35 David Woolley posted:
How does one set the default tab in DMXzone tabs?

For Spry tabbed panels set: {defaultTab:#} where # is from 0 to n

e.g. if 3rd panel should open on page load, then script should be:

var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1", {defaultTab:2});

Not that apparent with DMXzone tabs.

Cheers
Dave

Replies

Replied 26 Feb 2013 08:15:21
26 Feb 2013 08:15:21 Vulcho Vulev replied:
Hello David.

Once the extension is present on your page:

1.) Open Behaviors Connector by click on the blue paperclip icon in the Property Inspector of the DMXzone Ajax Form in order to view the available events.
2.)Click from the right-hand side “Available Events” : “When tabs are created”
3.) Click on the left-hand side “Available Behaviors” :” DMXZone> Control DMXZone Tabs”.
4.)Click on right pointing blue arrow in order to add selected behavior.
5.)From the Dialog window which will appear choose:
DMXZone Tabs: your tabs ID (dmxTabs1 by default.)
Action: Go To Tab
Number: Tab number you want to open.Note that the number is zero based, if you want to open your tab 1 you will type "0", if you want to open your tab 2 - you will type "1" e.t.c.
6.)Click O.k. in order to apply the behavior.

Regards:Vulcho.
Replied 26 Feb 2013 13:30:43
26 Feb 2013 13:30:43 David Woolley replied:
Thanks Vulcho - works a treat!
Dave

Reply to this topic