Skip to content

Commit ed49033

Browse files
committed
Accordion: Updated demos to use the new API.
1 parent 678ff63 commit ed49033

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

demos/accordion/custom-icons.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
$(function() {
1515
var icons = {
1616
header: "ui-icon-circle-arrow-e",
17-
headerSelected: "ui-icon-circle-arrow-s"
17+
activeHeader: "ui-icon-circle-arrow-s"
1818
};
1919
$( "#accordion" ).accordion({
2020
icons: icons
@@ -62,7 +62,7 @@ <h3><a href="#">Section 4</a></h3>
6262

6363

6464
<div class="demo-description">
65-
<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>
65+
<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>
6666
</div><!-- End demo-description -->
6767

6868
</body>

demos/accordion/fillspace.html

+4-3
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,15 @@
1414
<script>
1515
$(function() {
1616
$( "#accordion" ).accordion({
17-
fillSpace: true
17+
heightStyle: "fill"
1818
});
1919
});
2020
$(function() {
2121
$( "#accordionResizer" ).resizable({
2222
minHeight: 140,
23+
minWidth: 200,
2324
resize: function() {
24-
$( "#accordion" ).accordion( "resize" );
25+
$( "#accordion" ).accordion( "refresh" );
2526
}
2627
});
2728
});
@@ -69,7 +70,7 @@ <h3><a href="#">Section 4</a></h3>
6970

7071

7172
<div class="demo-description">
72-
<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>
73+
<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>
7374
</div><!-- End demo-description -->
7475

7576
</body>

demos/accordion/no-auto-height.html

+2-4
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@
1212
<script>
1313
$(function() {
1414
$( "#accordion" ).accordion({
15-
autoHeight: false,
16-
navigation: true
15+
heightStyle: "content"
1716
});
1817
});
1918
</script>
@@ -52,8 +51,7 @@ <h3><a href="#section3">Section 3</a></h3>
5251

5352

5453
<div class="demo-description">
55-
<p>Setting <code>autoHeight: false</code> allows to accordion panels to keep their native height.</p>
56-
<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>
54+
<p>Setting <code>heightStyle: "content"</code> allows the accordion panels to keep their native height.</p>
5755
</div><!-- End demo-description -->
5856

5957
</body>

0 commit comments

Comments
 (0)