Git Product home page Git Product logo

jquery.mobile-tabs's Introduction

Creates simple jQuery.mobile tabs.

  • Uses widget factory
  • Follows normal jQuery mobile standards
  • Implemented in a non-obtrusive way
  • Programmed like a true jQuery novice :)

Usage

First off, realize that this is a VERY rudimentary widget plugin, and that its use is fairly specific, meaning that I've only tested it one way, with the following caveats:

  • Does not load any content via AJAX
  • Does not load any different actual page parts, and depends on user doing some css in order to make some block-level items display as they would normally in jQuery.mobile
  • Tab bar must be located in the header
  • Content panels must be inside of the content area
  • I hope to improve this sometime, or maybe the jQuery.mobile team will be able to use what I've got here to make something awesomer.

This being said, here's a sample of the usage:

<div data-role="page" id="page-title">
	<div data-role="header">
		<h1><%= @page_title %></h1>
		<div data-role="tabs">
			<ul>
				<li><a href="#tab-1" class="">Tab 1</a></li>
				<li><a href="#tab-2" class="">Tab 2</a></li>
			</ul>
		</div>
	</div>

	<div data-role="content">
		<ul id="tab-1">
			<li>First thing</li>
			<li>Second Thing</li>
		</ul>

		<div id="tab-2">
			<h2>Here is the second tab</h2>
		</div>
	</div>
</div>

jquery.mobile-tabs's People

Contributors

groovetrain avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.