added a note to docs. Fixes #880

This commit is contained in:
scottjehl 2011-01-25 23:46:09 -05:00
parent 9ed13f86c8
commit d9b84f3f60

View file

@ -50,6 +50,10 @@
<h2>History &amp; Back button behavior</h2>
<p>Since dialogs are typically used to support actions within a page, the framework does not include dialogs in the hash state history tracking. This means that dialogs will not appear in your browsing history chronology when the Back button is clicked. For example, if you are on a page, click a link to open a dialog, close the dialog, then navigate to another page, if you were to click the browser's Back button at that point you will navigate back to the first page, not the dialog.</p>
<h2>Dialogs in Multi-Page templates</h2>
<p>To open a page div as a dialog in a multipage template, you'll need to assign that page <code>data-role="dialog"</code>, along with the regular data-rel linking convention.</p>
<h2>Styling &amp; theming</h2>
<p>Dialogs can be styled with different themes, just like any page. Here is a different dialog design:</p>
<a href="dialog-alt.html" data-role="button" data-inline="true" data-rel="dialog" data-transition="pop">An alternate color scheme</a>