Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Commit 83724c6

Browse files
author
Gabriel Schulhof
committed
Demos: Collapsible: Provide an example of a pre-rendered collapsible.
1 parent c135660 commit 83724c6

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

demos/widgets/collapsibles/index.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,22 @@
211211
</div>
212212
</div><!--/demo-html -->
213213

214+
<h2>Pre-rendered markup</h2>
215+
<p>You can supply pre-rendered markup for any collapsible to save startup time. The example below illustrates the markup you have to provide for a pre-rendered collapsible.</p>
216+
<div data-demo-html="true">
217+
<div data-role="collapsible" data-enhanced="true" class="ui-collapsible ui-collapsible-inset ui-corner-all ui-collapsible-collapsed">
218+
<h4 class="ui-collapsible-heading ui-collapsible-heading-collapsed">
219+
<a href="#" class="ui-collapsible-heading-toggle ui-btn ui-btn-icon-left ui-icon-plus">
220+
Heading
221+
<div class="ui-collapsible-heading-status"> click to expand contents</div>
222+
</a>
223+
</h4>
224+
<div class="ui-collapsible-content ui-collapsible-content-collapsed" aria-hidden="true">
225+
<p>I'm the collapsible content. By default I'm closed, but you can click the header to open me.</p>
226+
</div>
227+
</div>
228+
</div>
229+
214230
</div><!-- /content -->
215231

216232
<div data-role="footer" class="jqm-footer">

0 commit comments

Comments
 (0)