Permalink
Browse files

Tabs: First pass at ui-tabs integration

  • Loading branch information...
arschmitz committed Apr 25, 2013
1 parent 94b59a3 commit 404a8dab855a25292255a838f619d0e8e97825a0
@@ -553,7 +553,17 @@ h2.jqm-home-widget {
-moz-box-shadow: -5px 0 5px rgba(0,0,0,.10);
box-shadow: -5px 0 5px rgba(0,0,0,.10);
}
/* tabs */
.tabs-list-left{
width:25%;
float:left;
vertical-align:top;
}
.tabs-list-content{
width:73%;
float:right;
margin:1em 0;
}
/* Responsive */
@media (min-width:46em) {
/* Header logo */
@@ -0,0 +1 @@
<div class="tabs-list-content ui-content">I am ajax tab content i was pulled in from ajax-content.php </div>
@@ -0,0 +1,88 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Navbar - jQuery Mobile Demos</title>
<link rel="stylesheet" href="../../../css/themes/default/jquery.mobile.css">
<link rel="stylesheet" href="../../_assets/css/jqm-demos.css">
<link rel="shortcut icon" href="../../favicon.ico">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,700">
<script src="../../../js/jquery.js"></script>
<script src="../../_assets/js/"></script>
<script src="../../../js/"></script>
</head>
<body>
<div data-role="page" class="jqm-demos" data-quicklinks="true">
<div data-role="header" class="jqm-header">
<h1 class="jqm-logo"><a href="../../"><img src="../../_assets/img/jquery-logo.png" alt="jQuery Mobile Framework"></a></h1>
<a href="#" class="jqm-navmenu-link" data-icon="bars" data-iconpos="notext">Navigation</a>
<a href="#" class="jqm-search-link" data-icon="search" data-iconpos="notext">Search</a>
<?php include( '../../search.php' ); ?>
</div><!-- /header -->
<div data-role="content" class="jqm-content">
<h1>Tabs <a href="http://api.jquerymobile.com/navbar/" data-ajax="false" data-role="button" data-inline="true" data-mini="true" data-icon="arrow-r" data-iconpos="right" class="jqm-api-link">API</a></h1>
<p class="jqm-intro">The jQuery mobile tabs widget is actually just an extension of the jQuery ui tabs widget and takes all the same options and methods</p>
</p>
<h2>Use navbar for tabs</h2>
<div data-role="tabs" id="tabs">
<div data-role="navbar">
<ul>
<li><a href="#one" data-ajax="false">one</a></li>
<li><a href="#two" data-ajax="false">two</a></li>
<li><a href="ajax-content.php" data-ajax="false">three</a></li>
</ul>
</div>
<div id="one" class="ui-body-d ui-content">
<h1>First tab contents</h1>
</div>
<div id="two">
<ul data-role="listview" data-inset="true">
<li><a href="#">Acura</a></li>
<li><a href="#">Audi</a></li>
<li><a href="#">BMW</a></li>
<li><a href="#">Cadillac</a></li>
<li><a href="#">Ferrari</a></li>
</ul>
</div>
</div>
<h2>Use inset listview for tabs</h2>
<div data-role="tabs">
<ul data-role="listview" data-inset="true" class="tabs-list-left">
<li><a href="#one" data-ajax="false">one</a></li>
<li><a href="#two" data-ajax="false">two</a></li>
<li><a href="ajax-content.php" data-ajax="false">three</a></li>
</ul>
<div id="one" class="ui-body-d tabs-list-content">
<h1>First tab contents</h1>
</div>
<ul id="two" class="tabs-list-content" data-role="listview" data-inset="true">
<li><a href="#">Acura</a></li>
<li><a href="#">Audi</a></li>
<li><a href="#">BMW</a></li>
<li><a href="#">Cadillac</a></li>
<li><a href="#">Ferrari</a></li>
</ul>
</div>
<h2>Tabbed page content</h2>
<p>You can also use tabs to swap out an enitre pages content <a href="tabbed-content.php">Tabbed Content Pages</a></p>
</div><!-- /content -->
<div data-role="footer" class="jqm-footer">
<p class="jqm-version"></p>
<p>Copyright 2013 The jQuery Foundation</p>
</div><!-- /footer -->
<?php include( '../../global-nav.php' ); ?>
</div><!-- /page -->
</body>
</html>
@@ -0,0 +1,47 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Navbar - jQuery Mobile Demos</title>
<link rel="stylesheet" href="../../../css/themes/default/jquery.mobile.css">
<link rel="stylesheet" href="../../_assets/css/jqm-demos.css">
<link rel="shortcut icon" href="../../favicon.ico">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,700">
<script src="../../../js/jquery.js"></script>
<script src="../../../js/"></script>
</head>
<body>
<div data-role="page" class="jqm-demos" data-quicklinks="true">
<div data-role="tabs">
<div data-role="header">
<div data-role="navbar">
<ul>
<li><a href="#one" data-ajax="false">one</a></li>
<li><a href="#two" data-ajax="false">two</a></li>
<li><a href="ajax-content.php" data-ajax="false">three</a></li>
</ul>
</div>
</div>
<div id="one" class="ui-content">
<h1>First tab contents</h1>
</div>
<div id="two" class="ui-content">
<ul data-role="listview" data-inset="true">
<li><a href="#">Acura</a></li>
<li><a href="#">Audi</a></li>
<li><a href="#">BMW</a></li>
<li><a href="#">Cadillac</a></li>
<li><a href="#">Ferrari</a></li>
</ul>
</div>
</div><!-- /content -->
<div data-role="footer" class="jqm-footer">
<p class="jqm-version"></p>
<p>Copyright 2013 The jQuery Foundation</p>
</div><!-- /footer -->
</div><!-- /page -->
</body>
</html>
View
@@ -74,6 +74,8 @@
'widgets/table.js',
'widgets/table.columntoggle.js',
'widgets/table.reflow.js',
'widgets/jquery.ui.tabs.js',
'widgets/tabs.js',
'jquery.mobile.zoom.js',
'jquery.mobile.zoom.iosorientationfix.js',
'jquery.mobile.init.js'
View
@@ -41,6 +41,8 @@ define([
"./widgets/table",
"./widgets/table.columntoggle",
"./widgets/table.reflow",
"./widgets/jquery.ui.tabs",
"./widgets/tabs",
"./jquery.mobile.zoom",
"./jquery.mobile.zoom.iosorientationfix"
], function( require ) {
Oops, something went wrong.

0 comments on commit 404a8da

Please sign in to comment.