Skip to main content

Search and Top Navigation

Ticket #5915: default.html
File default.html, 5.0 KB (added by archanbhatt, August 09, 2010 08:34PM UTC)
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8" />
	<title>Button Static Test : Default</title>
	<link rel="stylesheet" type="text/css" href="http://jquery-ui.googlecode.com/svn/tags/1.8.2/themes/base/jquery.ui.all.css" />
	<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
	<script type="text/javascript" src="http://jquery-ui.googlecode.com/svn/tags/1.8.2/ui/jquery-ui.js"></script>
	
	<style>
		div { margin: 0 0 1em; }
		h2 { margin: 2em 0 1em; }
		body { font-size:62.5%;}
	</style>	
</head>
<body>
	
	<h2>Using button elements</h2>

	<div>
		<button class="ui-button ui-button-text-only ui-widget ui-state-default ui-corner-all">
			<span class="ui-button-text">Button</span>
		</button>
		
		<button class="ui-button ui-button-icon-only ui-widget ui-state-default ui-corner-all" title="Button">
			<span class="ui-button-icon-primary ui-icon ui-icon-locked"></span>
			<span class="ui-button-text">Button</span>
		</button>
		
		<button class="ui-button ui-button-text-icon ui-widget ui-state-default ui-corner-all">
			<span class="ui-button-icon-primary ui-icon ui-icon-locked"></span>
			<span class="ui-button-text">Button</span>
		</button>
		
		<button class="ui-button ui-button-text-icons ui-widget ui-state-default ui-corner-all">
			<span class="ui-button-icon-primary ui-icon ui-icon-gear"></span>
			<span class="ui-button-text">Button</span>
			<span class="ui-button-icon-secondary ui-icon ui-icon-triangle-1-s"></span>
		</button>
		
		<button class="ui-button ui-button-icons-only ui-widget ui-state-default ui-corner-all">
			<span class="ui-button-icon-primary ui-icon ui-icon-gear"></span>
			<span class="ui-button-text">Button</span>
			<span class="ui-button-icon-secondary ui-icon ui-icon-triangle-1-s"></span>
		</button>
	</div>
	
	<h2>Using anchor elements</h2>

	<div>
		<a href="#" class="ui-button ui-button-text-only ui-widget ui-state-default ui-corner-all">
			<span class="ui-button-text">Button</span>
		</a>
		
		<a href="#" class="ui-button ui-button-icon-only ui-widget ui-state-default ui-corner-all" title="Button">
			<span class="ui-button-icon-primary ui-icon ui-icon-locked"></span>
			<span class="ui-button-text">Button</span>
		</a>
		
		<a href="#" class="ui-button ui-button-text-icon ui-widget ui-state-default ui-corner-all">
			<span class="ui-button-icon-primary ui-icon ui-icon-locked"></span>
			<span class="ui-button-text">Button</span>
		</a>
		
		<a href="#" class="ui-button ui-button-text-icons ui-widget ui-state-default ui-corner-all">
			<span class="ui-button-icon-primary ui-icon ui-icon-gear"></span>
			<span class="ui-button-text">Button</span>
			<span class="ui-button-icon-secondary ui-icon ui-icon-triangle-1-s"></span>
		</a>
		
		<a href="#" class="ui-button ui-button-icons-only ui-widget ui-state-default ui-corner-all">
			<span class="ui-button-icon-primary ui-icon ui-icon-gear"></span>
			<span class="ui-button-text">Button</span>
			<span class="ui-button-icon-secondary ui-icon ui-icon-triangle-1-s"></span>
		</a>
	</div>
	
	
	
	<h2>Using label elements (used when proxying to radio or check inputs)</h2>

	<div class="ui-widget-header">
		<label class="ui-button ui-button-text-only ui-widget ui-state-default ui-corner-all">
			<span class="ui-button-text">Button</span>
		</label>
		
		<label class="ui-button ui-button-icon-only ui-widget ui-state-default ui-corner-all" title="Button">
			<span class="ui-button-icon-primary ui-icon ui-icon-locked"></span>
			<span class="ui-button-text">Button</span>
		</label>
		
		<label class="ui-button ui-button-text-icon ui-widget ui-state-default ui-corner-all">
			<span class="ui-button-icon-primary ui-icon ui-icon-locked"></span>
			<span class="ui-button-text">Button</span>
		</label>
		
		<label class="ui-button ui-button-text-icons ui-widget ui-state-default ui-corner-all">
			<span class="ui-button-icon-primary ui-icon ui-icon-gear"></span>
			<span class="ui-button-text">Button</span>
			<span class="ui-button-icon-secondary ui-icon ui-icon-triangle-1-s"></span>
		</label>
		
		<label class="ui-button ui-button-icons-only ui-widget ui-state-default ui-corner-all">
			<span class="ui-button-icon-primary ui-icon ui-icon-gear"></span>
			<span class="ui-button-text">Button</span>
			<span class="ui-button-icon-secondary ui-icon ui-icon-triangle-1-s"></span>
		</label>
	</div>
	
	
	<h2>Button Sets</h2>
	
	<div class="ui-buttonset">
		<button class="ui-button ui-button-text-only ui-widget ui-state-default ui-corner-left"><span class="ui-button-text">Simple button</span></button>
		<button class="ui-button ui-button-text-only ui-widget ui-state-default"><span class="ui-button-text">Simple button</span></button>
		<button class="ui-button ui-button-text-only ui-widget ui-state-default ui-corner-right"><span class="ui-button-text">Simple button</span></button>
	</div>
	
	

<script type="text/javascript" src="http://jqueryui.com/themeroller/themeswitchertool/"></script>
<script>
	$('<div/>').css({
		position: "absolute",
		right: 10,
		top: 10
	}).appendTo(document.body).themeswitcher();
</script>
</body>
</html>

Download in other formats:

Original Format