Skip to content

Commit 57314ba

Browse files
author
Gabriel Schulhof
committed
Tabs: Document extension
Fixes gh-336 Closes gh-337
1 parent d5881e2 commit 57314ba

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

pages/tabs.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,12 @@
77
}
88
}</script>
99

10-
<p>This widget is imported unchanged from <a href="http://jqueryui.com/">jQuery UI</a>. Nevertheless, in keeping with jQuery Mobile widget features, the options documented on its jQuery UI API <a href="http://api.jqueryui.com/tabs/">reference</a> page are also available as <code>data-*</code> attributes.</p>
10+
<h2 id="introduction">Tabs</h2>
11+
<p>The jQuery UI tabs widget is bundled unchanged with jQuery Mobile. Thus, it's <a href="//api.jqueryui.com/tabs/">API documentation</a> fully describes its functionality.</p>
12+
<h2 id="options-and-autoinit">Options and autoinitialization</h2>
13+
<p>When used with jQuery Mobile's autoinitialization features, the options documented on the widget's API documentation page can also be provided as <code>data-*</code> attributes in the markup. You can add the <code>data-role="tabs"</code> attribute to your tabs widget markup to indicate that the element is to be turned into a tabs widget.</p>
14+
<h2 id="ajax">Ajax considerations</h2>
15+
<p>jQuery Mobile provides an extension to the tabs widget (<code>tabs.ajax</code>). The extension provides no new API, however, it modifies the way in which the widget evaluates whether displaying the content referred to by the <code>href</code> attributes of the links that play the role of tabs requires retrieval via Ajax. It is necessary to include this extension if your project consists of multiple external jQuery Mobile pages, one of which features a tabs widget.</p>
1116

1217
<section class="entry-examples" id="entry-examples">
1318
<header><h2>Example:</h2></header>

0 commit comments

Comments
 (0)