mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-16 22:10:25 +00:00
whitespace in navmodel docs
This commit is contained in:
parent
09c92b516d
commit
479585e1ff
1 changed files with 2 additions and 2 deletions
|
|
@ -67,11 +67,11 @@
|
|||
<p><strong>TODO: update description of internal base and urlHistory objects</strong></p>
|
||||
|
||||
<h2>Data-url storage</h2>
|
||||
|
||||
|
||||
<p>The nav model maintains a data-url attribute on all data-role=”page” elements. This data-url attribute is used to track the origin of the page element. Pages embedded within the main application document all have their data-url parameter set to the ID of the @data-role="page" element. The only exception to this is the first-page in the document. The first-page is special because it can be addressed by its @id if it has one, or by the document or base URL (with no hash fragment).</p>
|
||||
|
||||
<p>Pages that are external to the application document get pulled in dynamically via ajax, their data-url is set to the site relative path to the external page. If you are running in an environment where loading an external page from a different domain is allowed, then the data-url is set to the absolute URL.</p>
|
||||
|
||||
|
||||
<h2>Auto-generated pages and sub-hash urls</h2>
|
||||
|
||||
<p>Some plugins may choose to dynamically break a page's content into separate navigable pages, which can then be reached via deep links. One example of this would be the Listview plugin, which will break a nested UL (or OL) into separate pages, which are each given a data-url attribute so they can be linked to like any normal "page" in jQuery Mobile. However, in order to link to these pages, the page that generates them must first be requested from the server. To make this work, pages that are auto-generated by plugins use the following special data-url structure:
|
||||
|
|
|
|||
Loading…
Reference in a new issue