diff options
author | Scott González <scott.gonzalez@gmail.com> | 2011-02-03 14:14:13 -0500 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2011-02-03 14:14:13 -0500 |
commit | ed4903370090c5e81a5be7a9e23f351fc1b062a6 (patch) | |
tree | f8d6250a52adcf7c51a0a8e63bb1fba28a2ce44f /demos/accordion | |
parent | 678ff6326a984d4ff8e7f69fd31304c2520e66f3 (diff) | |
download | jquery-ui-ed4903370090c5e81a5be7a9e23f351fc1b062a6.tar.gz jquery-ui-ed4903370090c5e81a5be7a9e23f351fc1b062a6.zip |
Accordion: Updated demos to use the new API.
Diffstat (limited to 'demos/accordion')
-rw-r--r-- | demos/accordion/custom-icons.html | 4 | ||||
-rw-r--r-- | demos/accordion/fillspace.html | 7 | ||||
-rw-r--r-- | demos/accordion/no-auto-height.html | 6 |
3 files changed, 8 insertions, 9 deletions
diff --git a/demos/accordion/custom-icons.html b/demos/accordion/custom-icons.html index 7dff971f6..3ec244131 100644 --- a/demos/accordion/custom-icons.html +++ b/demos/accordion/custom-icons.html @@ -14,7 +14,7 @@ $(function() { var icons = { header: "ui-icon-circle-arrow-e", - headerSelected: "ui-icon-circle-arrow-s" + activeHeader: "ui-icon-circle-arrow-s" }; $( "#accordion" ).accordion({ icons: icons @@ -62,7 +62,7 @@ <div class="demo-description"> -<p>Customize the header icons with the <code>icons</code> option, which accepts classes for the header's default and selected (open) state. Use any class from the UI CSS framework, or create custom classes with background images.</p> +<p>Customize the header icons with the <code>icons</code> option, which accepts classes for the header's default and active (open) state. Use any class from the UI CSS framework, or create custom classes with background images.</p> </div><!-- End demo-description --> </body> diff --git a/demos/accordion/fillspace.html b/demos/accordion/fillspace.html index f874feb39..6cdd69181 100644 --- a/demos/accordion/fillspace.html +++ b/demos/accordion/fillspace.html @@ -14,14 +14,15 @@ <script> $(function() { $( "#accordion" ).accordion({ - fillSpace: true + heightStyle: "fill" }); }); $(function() { $( "#accordionResizer" ).resizable({ minHeight: 140, + minWidth: 200, resize: function() { - $( "#accordion" ).accordion( "resize" ); + $( "#accordion" ).accordion( "refresh" ); } }); }); @@ -69,7 +70,7 @@ <div class="demo-description"> -<p>Because the accordion is comprised of block-level elements, by default its width fills the available horizontal space. To fill the vertical space allocated by its container, set the boolean <code>fillSpace</code> option to true, and the script will automatically set the dimensions of the accordion to the height of its parent container. The accordion will also resize with its container if the container is <code>resizable</code>.</p> +<p>Because the accordion is comprised of block-level elements, by default its width fills the available horizontal space. To fill the vertical space allocated by its container, set the <code>heightStyle</code> option to <code>"fill"</code>, and the script will automatically set the dimensions of the accordion to the height of its parent container.</p> </div><!-- End demo-description --> </body> diff --git a/demos/accordion/no-auto-height.html b/demos/accordion/no-auto-height.html index 96183c92c..4df1c145d 100644 --- a/demos/accordion/no-auto-height.html +++ b/demos/accordion/no-auto-height.html @@ -12,8 +12,7 @@ <script> $(function() { $( "#accordion" ).accordion({ - autoHeight: false, - navigation: true + heightStyle: "content" }); }); </script> @@ -52,8 +51,7 @@ <div class="demo-description"> -<p>Setting <code>autoHeight: false</code> allows to accordion panels to keep their native height.</p> -<p>In addition, the <code>navigation</code> option is enabled, opening the panel based on the current location, eg. no-auto-height.html#panel2 would open the second panel on page load. It also finds anchors within the content, so #othercontent will open the third section, as it contains a link with that href.</p> +<p>Setting <code>heightStyle: "content"</code> allows the accordion panels to keep their native height.</p> </div><!-- End demo-description --> </body> |