aboutsummaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
authorTodd Parker <fg.todd@gmail.com>2008-12-30 16:15:57 +0000
committerTodd Parker <fg.todd@gmail.com>2008-12-30 16:15:57 +0000
commitf68e99afab2b4331d181d80d6251230bccfd75eb (patch)
treebb636ded35e2ae35029cbeddaa5942b13bf084e8 /demos
parenta16c0e805eb9451dfe3a44e6f4db73ecd6aac750 (diff)
downloadjquery-ui-f68e99afab2b4331d181d80d6251230bccfd75eb.tar.gz
jquery-ui-f68e99afab2b4331d181d80d6251230bccfd75eb.zip
Added new custom icon and collapsable demos, updated index
Diffstat (limited to 'demos')
-rw-r--r--demos/accordion/collapsable.html67
-rw-r--r--demos/accordion/custom_icons.html74
-rw-r--r--demos/accordion/fillspace.html2
-rw-r--r--demos/accordion/index.html4
-rw-r--r--demos/accordion/mouseover.html3
5 files changed, 146 insertions, 4 deletions
diff --git a/demos/accordion/collapsable.html b/demos/accordion/collapsable.html
new file mode 100644
index 000000000..e443960b4
--- /dev/null
+++ b/demos/accordion/collapsable.html
@@ -0,0 +1,67 @@
+<!doctype html>
+<html lang="en">
+<head>
+ <title>jQuery UI Accordion - Collapsable Demo</title>
+ <link type="text/css" href="../demos.css" rel="stylesheet" />
+ <link type="text/css" href="../../themes/default/ui.all.css" rel="stylesheet" />
+ <script type="text/javascript" src="../../jquery-1.2.6.js"></script>
+ <script type="text/javascript" src="../../ui/ui.core.js"></script>
+ <script type="text/javascript" src="../../ui/ui.accordion.js"></script>
+ <script type="text/javascript">
+ $(function() {
+ $("#accordion").accordion({
+ header: "h3",
+ alwaysOpen: false
+ });
+ });
+ </script>
+</head>
+<body>
+
+<div class="demo">
+
+<div id="accordion">
+ <div>
+ <h3><a href="#">Section 1</a></h3>
+ <div>
+ <p>Mauris mauris ante, blandit et, ultrices a, suscipit eget, quam. Integer ut neque. Vivamus nisi metus, molestie vel, gravida in, condimentum sit amet, nunc. Nam a nibh. Donec suscipit eros. Nam mi. Proin viverra leo ut odio. Curabitur malesuada. Vestibulum a velit eu ante scelerisque vulputate.</p>
+ </div>
+ </div>
+ <div>
+ <h3><a href="#">Section 2</a></h3>
+ <div>
+ <p>Sed non urna. Donec et ante. Phasellus eu ligula. Vestibulum sit amet purus. Vivamus hendrerit, dolor at aliquet laoreet, mauris turpis porttitor velit, faucibus interdum tellus libero ac justo. Vivamus non quam. In suscipit faucibus urna. </p>
+ </div>
+ </div>
+ <div>
+ <h3><a href="#">Section 3</a></h3>
+ <div>
+ <p>Nam enim risus, molestie et, porta ac, aliquam ac, risus. Quisque lobortis. Phasellus pellentesque purus in massa. Aenean in pede. Phasellus ac libero ac tellus pellentesque semper. Sed ac felis. Sed commodo, magna quis lacinia ornare, quam ante aliquam nisi, eu iaculis leo purus venenatis dui. </p>
+ <ul>
+ <li>List item one</li>
+ <li>List item two</li>
+ <li>List item three</li>
+ </ul>
+ </div>
+ </div>
+ <div>
+ <h3><a href="#">Section 4</a></h3>
+ <div>
+ <p>Cras dictum. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Aenean lacinia mauris vel est. </p><p>Suspendisse eu nisl. Nullam ut libero. Integer dignissim consequat lectus. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. </p>
+ </div>
+ </div>
+</div>
+
+</div><!-- End demo -->
+
+
+
+<div class="demo-description">
+
+<p>By default, accordions always keep one section open. To allow for all sections to be be collapsable, set the alwaysOpen option to false. Click on the currently open section to collapse the section in the example above.</p>
+
+
+</div><!-- End demo-description -->
+
+</body>
+</html>
diff --git a/demos/accordion/custom_icons.html b/demos/accordion/custom_icons.html
new file mode 100644
index 000000000..68fbacba7
--- /dev/null
+++ b/demos/accordion/custom_icons.html
@@ -0,0 +1,74 @@
+<!doctype html>
+<html lang="en">
+<head>
+ <title>jQuery UI Accordion - Custom Icon Demo</title>
+ <link type="text/css" href="../demos.css" rel="stylesheet" />
+ <link type="text/css" href="../../themes/default/ui.all.css" rel="stylesheet" />
+ <script type="text/javascript" src="../../jquery-1.2.6.js"></script>
+ <script type="text/javascript" src="../../ui/ui.core.js"></script>
+ <script type="text/javascript" src="../../ui/ui.accordion.js"></script>
+ <script type="text/javascript">
+ $(function() {
+ $("#accordion").accordion({
+ header: "h3",
+ icons: {
+ header: "ui-icon-circle-arrow-e",
+ headerSelected: "ui-icon-circle-arrow-s"}
+ });
+ });
+ </script>
+</head>
+<body>
+
+<div class="demo">
+
+<div id="accordion">
+ <div>
+ <h3><a href="#">Section 1</a></h3>
+ <div>
+ <p>Mauris mauris ante, blandit et, ultrices a, suscipit eget, quam. Integer ut neque. Vivamus nisi metus, molestie vel, gravida in, condimentum sit amet, nunc. Nam a nibh. Donec suscipit eros. Nam mi. Proin viverra leo ut odio. Curabitur malesuada. Vestibulum a velit eu ante scelerisque vulputate.</p>
+ </div>
+ </div>
+ <div>
+ <h3><a href="#">Section 2</a></h3>
+ <div>
+ <p>Sed non urna. Donec et ante. Phasellus eu ligula. Vestibulum sit amet purus. Vivamus hendrerit, dolor at aliquet laoreet, mauris turpis porttitor velit, faucibus interdum tellus libero ac justo. Vivamus non quam. In suscipit faucibus urna. </p>
+ </div>
+ </div>
+ <div>
+ <h3><a href="#">Section 3</a></h3>
+ <div>
+ <p>Nam enim risus, molestie et, porta ac, aliquam ac, risus. Quisque lobortis. Phasellus pellentesque purus in massa. Aenean in pede. Phasellus ac libero ac tellus pellentesque semper. Sed ac felis. Sed commodo, magna quis lacinia ornare, quam ante aliquam nisi, eu iaculis leo purus venenatis dui. </p>
+ <ul>
+ <li>List item one</li>
+ <li>List item two</li>
+ <li>List item three</li>
+ </ul>
+ </div>
+ </div>
+ <div>
+ <h3><a href="#">Section 4</a></h3>
+ <div>
+ <p>Cras dictum. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Aenean lacinia mauris vel est. </p><p>Suspendisse eu nisl. Nullam ut libero. Integer dignissim consequat lectus. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. </p>
+ </div>
+ </div>
+</div>
+
+</div><!-- End demo -->
+
+
+
+<div class="demo-description">
+
+<p>The icons used for the open and closed accordions can be any of the standard icons in the css framework or even a custom css class you create with an icon background image. For this example, we're using the arrow in a circle icons:
+
+<pre>
+icons: {
+header: "ui-icon-circle-arrow-e",
+headerSelected: "ui-icon-circle-arrow-s"}
+</pre>
+
+</div><!-- End demo-description -->
+
+</body>
+</html>
diff --git a/demos/accordion/fillspace.html b/demos/accordion/fillspace.html
index dd0849ff5..bced182f6 100644
--- a/demos/accordion/fillspace.html
+++ b/demos/accordion/fillspace.html
@@ -69,7 +69,7 @@
<div class="demo-description">
-<p>In this example, the fillSpace option is used to make the accordion fit within a specific height and/or width. The script will automatically set the dimensions of the accordion sections and add scrollbars as needed.</p>
+<p>In this example, the fillSpace option is used to make the accordion fit within a specific height and/or width. The script will automatically set the dimensions of the accordion to the height of the parent container.</p>
<pre>fillSpace: true</pre>
</div><!-- End demo-description -->
diff --git a/demos/accordion/index.html b/demos/accordion/index.html
index f43a4f34d..a535d0fee 100644
--- a/demos/accordion/index.html
+++ b/demos/accordion/index.html
@@ -9,8 +9,10 @@
<h4>Accordion</h4>
<ul>
<li class="demo-config-on"><a href="default.html">Basic accordion (default)</a></li>
- <li><a href="mouseover.html">Mouseover accordion</a></li>
+ <li><a href="mouseover.html">Mouseover event</a></li>
<li><a href="fillspace.html">FillSpace example</a></li>
+ <li><a href="custom_icons.html">Custom icons</a></li>
+ <li><a href="collapsable.html">Collapsable</a></li>
</ul>
</div>
</body>
diff --git a/demos/accordion/mouseover.html b/demos/accordion/mouseover.html
index ac01a2565..881d1c873 100644
--- a/demos/accordion/mouseover.html
+++ b/demos/accordion/mouseover.html
@@ -58,8 +58,7 @@
<div class="demo-description">
- <p>In this example, we've customized the event to have sections open on mouseover instead of on click. This is done by simply adding this option to the accordion:</p>
-<pre>event: "mouseover"</pre>
+ <p>In this example, we've customized the event to have sections open on mouseover instead of on click. This is done by simply adding this option event: "mouseover" to the accordion:</p>
</div><!-- End demo-description -->