You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>I'm first in the source order so I'm shown as the page.</p>
49
+
<p>View internal page called <a href="#bar">bar</a></p>
50
+
</div><!-- /content -->
51
+
52
+
<div data-role="footer">
53
+
<h4>Page Footer</h4>
54
+
</div><!-- /footer -->
55
+
</div><!-- /page -->
56
+
<!-- other side panel pages here -->
57
+
</div>
58
+
<div data-role="panel" data-id="main">
59
+
<!-- Start of second page -->
60
+
<div data-role="page" id="bar">
61
+
62
+
<div data-role="header">
63
+
<h1>Bar</h1>
64
+
</div><!-- /header -->
65
+
66
+
<div data-role="content">
67
+
<p>I'm first in the source order so I'm shown as the page.</p>
68
+
<p><a href="#foo">Back to foo</a></p>
69
+
</div><!-- /content -->
70
+
71
+
<div data-role="footer">
72
+
<h4>Page Footer</h4>
73
+
</div><!-- /footer -->
74
+
</div><!-- /page -->
75
+
<!-- other main panel pages here -->
76
+
</div>
77
+
</body>
78
+
</html>
79
79
80
80
pages can also be loaded dynamically provided you specify the panel it needs to load into (as explained below). you need to preload two pages - one for each panel, to avoid an empty page on either of your panels.
81
81
82
82
Panel settings
83
83
===================================
84
-
there are two settings panel divs:
84
+
there are two settings for panel divs:
85
+
85
86
1) data-hash - takes the following values: true(default), false, and crumbs
86
87
this attribute tells splitview to track history for the panel or not (true and false), or to set a 'crumb' (crumbs) button at the top left portion of the header for each page.
87
88
88
89
2) data-context - takes a jQuery selector value, or a hash of the following: url, panel, refresh.
89
90
data-context tells splitview to load another page whose link can be found in the active page by the jQuery selector value, or a page which is pointed to by the hash. example:
NOTE: this attribute, if used on a page, overrides panel data-context attributes. example:
98
99
99
-
<divdata-role="page"data-context="a#default">
100
+
<div data-role="page" data-context="a#default">
100
101
101
102
Splitview Links
102
103
===================================
103
104
splitview links work just like the links in jQuery Mobile. the only difference is, you can define the panel you want the page that link points to load into using the 'data-panel' attribute. for example:
0 commit comments