Spry User Guide - Support - Adobe
Spry User Guide - Support - Adobe
Spry User Guide - Support - Adobe
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
. . .<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Tab 1<br />
Tab 2<br />
Tab 3<br />
Tab 4<br />
<br />
<br />
Tab 1 Content<br />
Tab 2 Content<br />
Tab 3 Content<br />
Tab 4 Content<br />
<br />
<br />
<br />
<br />
var TabbedPanels1 = new <strong>Spry</strong>.Widget.TabbedPanels("TabbedPanels1");<br />
<br />
<br />
In the code, the new JavaScript operator initializes the Tabbed Panel widget object, and transforms the div content<br />
with the ID of TabbedPanels1 from static HTML code into an interactive page element. The<br />
<strong>Spry</strong>.Widget.TabbedPanels method is a constructor in the <strong>Spry</strong> framework that creates Tabbed Panel objects, and<br />
the information necessary to initialize the object is contained in the <strong>Spry</strong>TabbedPanels.js JavaScript library that you<br />
linked to in the head of the document.<br />
Each of the elements in the Tabbed Panel widget contains a CSS class. These classes control the style of the Tabbed<br />
Panel widget, and exist in the accompanying <strong>Spry</strong>TabbedPanels.css file.<br />
You can change the appearance of any given part of the Tabbed Panel widget by editing the CSS rule that corresponds<br />
to the class names assigned to it in the HTML code. For example, to change the background color of the Tabbed<br />
Panel’s tabs, edit the TabbedPanelsTab rule in the <strong>Spry</strong>TabbedPanels.css file. Keep in mind that changing the CSS<br />
code in the <strong>Spry</strong>TabbedPanels.css file will affect all tabbed panels that are linked to that file.<br />
SPRY<br />
<strong>User</strong> <strong>Guide</strong><br />
In addition to the classes shown in the HTML code, the Tabbed Panel widget includes certain default behaviors that<br />
are attached to the widget. These behaviors are a built-in part of the <strong>Spry</strong> framework, and are in the <strong>Spry</strong>Tabbed-<br />
Panels.js JavaScript library file. The Tabbed Panel library includes behaviors related to hovering, tab clicking (to open<br />
panels), panel focus, and keyboard navigation.<br />
You can change the look of the Tabbed Panel as it relates to these behaviors by editing the appropriate classes in the<br />
<strong>Spry</strong>TabbedPanels.css file. If you want to remove a given behavior, you can delete the CSS rules that correspond to<br />
that behavior.<br />
Note: While you can change the look of the Tabbed Panel as it relates to a certain behavior, you cannot alter the built-in<br />
behaviors themselves. For example, <strong>Spry</strong> still places a TabbedPanelsContentVisible class on the currently open panel,<br />
even if no properties are set for the TabbedPanelsContentVisible class in the <strong>Spry</strong>TabbedPanels.css file.<br />
24