diff options
Diffstat (limited to 'libs/js/jquery-mobile-1.1.0/docs/toolbars/footer-persist-d.html')
-rw-r--r-- | libs/js/jquery-mobile-1.1.0/docs/toolbars/footer-persist-d.html | 92 |
1 files changed, 92 insertions, 0 deletions
diff --git a/libs/js/jquery-mobile-1.1.0/docs/toolbars/footer-persist-d.html b/libs/js/jquery-mobile-1.1.0/docs/toolbars/footer-persist-d.html new file mode 100644 index 00000000..572b8192 --- /dev/null +++ b/libs/js/jquery-mobile-1.1.0/docs/toolbars/footer-persist-d.html @@ -0,0 +1,92 @@ +<!DOCTYPE html> +<html> + <head> + <meta charset="utf-8"> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>jQuery Mobile Framework - Persistent footer C</title> + <link rel="stylesheet" href="../../css/themes/default/jquery.mobile.css" /> + <link rel="stylesheet" href="../_assets/css/jqm-docs.css"/> + + <script src="../../js/jquery.js"></script> + <script src="../../docs/_assets/js/jqm-docs.js"></script> + <script src="../../js/"></script> + +</head> +<body> + <div data-role="page" class="type-interior"> + + <div data-role="header" data-theme="f" data-position="fixed" data-id="foo"> + <h1>Info</h1> + <a href="../../" data-icon="home" data-iconpos="notext" data-direction="reverse">Home</a> + <a href="../nav.html" data-icon="search" data-iconpos="notext" data-rel="dialog" data-transition="fade">Search</a> + </div> + + <div data-role="content"> + <div class="content-primary"> + <h2>About persistent toolbars</h2> + <p>These pages are a demo of persistent toolbars. Click on any of the links in the footer, and you'll see the page content transition, but both the persistent header and footer on these pages remains in place durning the animation to a new HTML page.</p> + <p>To tell the framework to apply the persistent behavior, add a <code>data-id</code> attribute to the footer of all HTML pages in the navigation set to the same ID. It's that simple: if the page you're navigating to has a header or footer with the same <code>data-id</code>, the toolbars will appear fixed outside of the transition. Each of these pages has a different transition to test out how this works.</p> + + <p>Typically, the persistent toolbar technique will be combined with fixed positioning. In this example, the footer also has a navbar, like this:</p> + +<pre><code> +<div data-role="footer"<strong> data-id="foo1" data-position="fixed"</strong>> + <div data-role="navbar"> + <ul> + <li><a href="a.html">Friends</a></li> + <li><a href="b.html">Albums</a></li> + <li><a href="c.html">Emails</a></li> + <li><a href="d.html" >Info</a></li> + </ul> + </div><!-- /navbar --> +</div><!-- /footer --> +</code></pre> + <p>To set the active state of an item in a persistent toolbar, add a class of <code>ui-state-persist</code> in addition to <code>ui-btn-active</code> to the corresponding anchor.</p> + +<pre><code> +<li><a href="d.html" <strong>class="ui-btn-active ui-state-persist"</strong>>Info</a></li> +</code></pre> + + <h3>A note about transitions</h3> + <p>The slide, slideup, slidedown, fade or none <a href="../pages/page-transitions.html">page transitions</a> all work great with persistent fixed toolbars. However, intensive 3D transitions like flip, turn, and flow can cause positioning and animation performance issues with this technique so we don't recommend using them.</p> + + </div><!--/content-primary --> + + <div class="content-secondary"> + + <div data-role="collapsible" data-collapsed="true" data-theme="b" data-content-theme="d"> + + <h3>More in this section</h3> + + <ul data-role="listview" data-theme="c" data-dividertheme="d"> + + <li data-role="list-divider">Toolbars</li> + <li><a href="docs-bars.html">Toolbar basics</a></li> + <li><a href="docs-headers.html">Header bars</a></li> + <li><a href="docs-footers.html">Footer bars</a></li> + <li><a href="docs-navbar.html">Navbars</a></li> + <li><a href="bars-fixed.html">Fixed positioning</a></li> + <li data-theme="a"><a href="footer-persist-a.html">Persistent toolbars</a></li> + <li><a href="bars-themes.html">Theming toolbars</a></li> + + </ul> + </div> + </div> + + </div><!-- /content --> + + <div data-role="footer" data-id="foo1" data-position="fixed"> + <div data-role="navbar"> + <ul> + <li><a href="footer-persist-a.html" data-prefetch="true">Friends</a></li> + <li><a href="footer-persist-b.html" data-prefetch="true">Albums</a></li> + <li><a href="footer-persist-c.html" data-prefetch="true">Emails</a></li> + <li><a href="footer-persist-d.html" data-prefetch="true" data-transition="slideup" class="ui-btn-active ui-state-persist">Info</a></li> + </ul> + </div><!-- /navbar --> + </div><!-- /footer --> + + </div><!-- /page --> + + </body> + </html>
\ No newline at end of file |