Skip to content

Commit

Permalink
Tabs: Document extension
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel Schulhof committed Dec 30, 2014
1 parent d5881e2 commit 57314ba
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pages/tabs.html
Expand Up @@ -7,7 +7,12 @@
}
}</script>

<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>
<h2 id="introduction">Tabs</h2>
<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>
<h2 id="options-and-autoinit">Options and autoinitialization</h2>
<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>
<h2 id="ajax">Ajax considerations</h2>
<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>

<section class="entry-examples" id="entry-examples">
<header><h2>Example:</h2></header>
Expand Down

0 comments on commit 57314ba

Please sign in to comment.