aboutsummaryrefslogtreecommitdiffstats
path: root/demos/accordion
diff options
context:
space:
mode:
Diffstat (limited to 'demos/accordion')
-rw-r--r--demos/accordion/custom-icons.html16
1 files changed, 12 insertions, 4 deletions
diff --git a/demos/accordion/custom-icons.html b/demos/accordion/custom-icons.html
index 777fa5288..914ba32cd 100644
--- a/demos/accordion/custom-icons.html
+++ b/demos/accordion/custom-icons.html
@@ -9,11 +9,17 @@
<link type="text/css" href="../demos.css" rel="stylesheet" />
<script type="text/javascript">
$(function() {
+ var icons = {
+ header: "ui-icon-circle-arrow-e",
+ headerSelected: "ui-icon-circle-arrow-s"
+ };
$("#accordion").accordion({
- icons: {
- header: "ui-icon-circle-arrow-e",
- headerSelected: "ui-icon-circle-arrow-s"
- }
+ icons: icons
+ });
+ $("#toggle").toggle(function() {
+ $("#accordion").accordion("option", "icons", false);
+ }, function() {
+ $("#accordion").accordion("option", "icons", icons);
});
});
</script>
@@ -46,6 +52,8 @@
</div>
</div>
+<button id="toggle">Toggle icons</button>
+
</div><!-- End demo -->