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

Commit bdcd5a4

Browse files
author
Gabriel Schulhof
committed
Demos: Add pre-enhanced popup example.
1 parent 92d2757 commit bdcd5a4

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

demos/widgets/popup/index.php

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,12 @@
274274
</div>
275275
</div><!--/demo-html -->
276276

277+
<h2>Pre-enhanced markup</h2>
278+
<p>You can supply pre-enhanced popup markup to save startup time. The example below illustrates the minimum required markup.</p>
279+
<div data-demo-html="#pre-enhanced-page">
280+
<a href="#pre-enhanced-page" data-role="button" data-icon="arrow-r" data-iconpos="right" data-mini="true" data-inline="true">Go to demo</a>
281+
</div>
282+
277283
<h2>Advanced techniques</h2>
278284
<p>Learn how to customize and extend popups by working with the API, custom scripts, and styles.</p>
279285
<a href="popup-images.php" class="jqm-button" data-ajax="false" data-role="button" data-mini="true" data-inline="true" data-icon="arrow-r" data-iconpos="right">Scaling images</a>
@@ -289,5 +295,20 @@
289295
<?php include( '../../global-nav.php' ); ?>
290296

291297
</div><!-- /page -->
298+
<div id="pre-enhanced-page">
299+
<div data-role="header" data-add-back-btn="true">
300+
<h1>Pre-enhanced popup demo</h1>
301+
</div>
302+
<div data-role="content">
303+
<a href="#pre-enhanced" data-rel="popup" data-role="button" data-inline="true" aria-owns="pre-enhanced" aria-haspopup="true" aria-expanded="false">Open Popup</a>
304+
<div style="display: none;"><!-- placeholder for pre-enhanced --></div>
305+
</div>
306+
<div id="pre-enhanced-screen" class="ui-popup-screen ui-screen-hidden"></div>
307+
<div id="pre-enhanced-popup" class="ui-popup-container fade ui-popup-hidden ui-body-inherit ui-overlay-shadow ui-corner-all">
308+
<div id="pre-enhanced" class="ui-popup" data-role="popup" data-transition="fade">
309+
<p>This is the contents of the pre-enhanced popup</p>
310+
</div>
311+
</div>
312+
</div>
292313
</body>
293314
</html>

0 commit comments

Comments
 (0)