Skip to content

Commit 298ff73

Browse files
author
Gabriel Schulhof
committed
Page: Document how dialog-styled pages can be closed programmatically
Closes gh-235 Fixes gh-233
1 parent 52d7e14 commit 298ff73

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

entries/page.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,16 @@
3636
]]></code></pre>
3737
<iframe src="/resources/page/example0.html" style="width:100%;height:420px;border:0px"></iframe></p>
3838

39+
<p id="closing-dialog">You can programmatically close a page styled as a dialog by navigating to another page. For example, you can use the <code>pagecontainer</code> <a href="/pagecontainer/#method-change"><code>change</code></a> method:
40+
<pre><code><![CDATA[
41+
$( ":mobile-pagecontainer" ).pagecontainer( "change", "somepage.html" );
42+
]]></code></pre></p>
43+
44+
<p>You can also simply go back:
45+
<pre><code><![CDATA[
46+
$.mobile.back();
47+
]]></code></pre></p>
48+
3949
</longdesc>
4050
<added>1.0</added>
4151
<options>

0 commit comments

Comments
 (0)