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
Copy file name to clipboardExpand all lines: entries/panel.xml
+49-19
Original file line number
Diff line number
Diff line change
@@ -35,9 +35,36 @@
35
35
<p>To avoid blinks when opening a panel, we force hardware acceleration on WebKit browsers. The CSS that is used to do this can cause issues with buttons and form elements on the page if their container has a CSS multi-column layout (<code>column-count</code>). To resolve this you have to set the following rule for the element or its container:</p>
36
36
37
37
<pre><code><![CDATA[
38
-
-webkit-transform: translate3d(0,0,0);
38
+
-webkit-transform: translate3d( 0, 0, 0 );
39
39
]]></code></pre>
40
40
41
+
<h3>External Panels</h3>
42
+
<p>Since jQuery Mobile 1.4.0, it is also possible to have external panels. This means that you can now have panels located outside the page. Panels outside of a page must be initalized manually and will not be handled by auto init. Panels outside of pages will remain in the DOM (unless manually removed) as long as you use Ajax navigation, and can be opened or closed from any page. This can be handy when you want to use the same panel on more than one page. </p>
43
+
44
+
<p>Here is an example of an external panel:</p>
45
+
46
+
<pre><code><![CDATA[
47
+
<div data-role="page">
48
+
<!-- header -->
49
+
<!-- content -->
50
+
<!-- footer -->
51
+
</div><!-- page -->
52
+
53
+
<div data-role="panel" id="mypanel">
54
+
<!-- panel content goes here -->
55
+
</div><!-- /panel -->
56
+
]]></code></pre>
57
+
58
+
<p>The panel can be enhanced manually as follows:</p>
59
+
60
+
<pre><code><![CDATA[
61
+
$( function() {
62
+
$( "#mypanel" ).panel();
63
+
} );
64
+
]]></code></pre>
65
+
66
+
<p>Note that if the panel contains other jQuery Mobile widgets, such as listviews, these will need to be enhanced manually as well.</p>
67
+
41
68
<h3>Panel markup conventions</h3>
42
69
<p>A panel consists of a container with a <code><![CDATA[data-role="panel"]]></code> attribute and a unique <code>ID</code>. This <code>ID</code> will be referenced by the link or button to open and close the panel. The most basic panel markup looks like this:</p>
<desc>Class added to the panel, page contents wrapper and fixed toolbars when option animate is true and the 3D transform feature test returns <code>true</code>.</desc>
<p><strong>Note: This class is no longer used as of 1.4.0, so setting this option will have no effect on the panel.</strong></p>
261
+
<divclass="warning"><strong>Note:</strong> This class is no longer used as of 1.4.0, so setting this option will have no effect on the panel.</div>
235
262
<p>Class added to the wrapper injected around the page contents (header, content, footer) when the panel is opening. Used for targeting hardware acceleration only during transitions.</p>
0 commit comments