From 9c885b8d9eb00db35043fd969da3c437abeddb38 Mon Sep 17 00:00:00 2001 From: Gabriel Schulhof Date: Tue, 30 Sep 2014 08:38:04 +0300 Subject: [PATCH 1/2] Tabs: Document extension Fixes gh-336 --- pages/tabs.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pages/tabs.html b/pages/tabs.html index 9674d21e..e3f1af54 100644 --- a/pages/tabs.html +++ b/pages/tabs.html @@ -7,7 +7,12 @@ } } -

This widget is imported unchanged from jQuery UI. Nevertheless, in keeping with jQuery Mobile widget features, the options documented on its jQuery UI API reference page are also available as data-* attributes.

+

Tabs

+

The jQuery UI tabs widget is bundled unchanged with jQuery Mobile. Thus, it's API documentation fully describes its functionality.

+

Options and autoinitialization

+

When used with jQuery Mobile's autoinitialization features, the options documented on the widget's API documentation page can also be provided as data-* attributes in the markup. You can add the data-role="tabs" attribute to your tabs widget markup to indicate that the element is to be turned into a tabs widget.

+

Ajax considerations

+

jQuery Mobile provides an extension to the tabs widget (tabs.ajax). The extension provides no new API, however, it modifies the way in which the widget evaluates whether displaying the content referred to by the href 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.

Example:

From 0cb94ee538b6678b50d2351a431e208b494057bb Mon Sep 17 00:00:00 2001 From: Gabriel Schulhof Date: Tue, 30 Sep 2014 11:32:20 +0300 Subject: [PATCH 2/2] Tabs: Add IDs to

tags --- pages/tabs.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/tabs.html b/pages/tabs.html index e3f1af54..fef16a37 100644 --- a/pages/tabs.html +++ b/pages/tabs.html @@ -7,11 +7,11 @@ } } -

Tabs

+

Tabs

The jQuery UI tabs widget is bundled unchanged with jQuery Mobile. Thus, it's API documentation fully describes its functionality.

-

Options and autoinitialization

+

Options and autoinitialization

When used with jQuery Mobile's autoinitialization features, the options documented on the widget's API documentation page can also be provided as data-* attributes in the markup. You can add the data-role="tabs" attribute to your tabs widget markup to indicate that the element is to be turned into a tabs widget.

-

Ajax considerations

+

Ajax considerations

jQuery Mobile provides an extension to the tabs widget (tabs.ajax). The extension provides no new API, however, it modifies the way in which the widget evaluates whether displaying the content referred to by the href 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.