jquery-ui/demos/button/icons.html

57 lines
1.4 KiB
HTML
Raw Normal View History

<!DOCTYPE html>
2010-01-20 14:00:14 +00:00
<html lang="en">
<head>
2010-09-10 02:43:06 +00:00
<meta charset="utf-8">
<title>jQuery UI Button - Icons</title>
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
2011-03-03 01:44:26 +00:00
<script src="../../jquery-1.5.1.js"></script>
2010-09-10 02:43:06 +00:00
<script src="../../ui/jquery.ui.core.js"></script>
<script src="../../ui/jquery.ui.widget.js"></script>
<script src="../../ui/jquery.ui.button.js"></script>
<link rel="stylesheet" href="../demos.css">
<script>
2010-01-20 14:00:14 +00:00
$(function() {
2010-09-10 02:43:06 +00:00
$( ".demo button:first" ).button({
2010-01-20 14:00:14 +00:00
icons: {
2010-09-10 02:43:06 +00:00
primary: "ui-icon-locked"
2010-01-20 14:00:14 +00:00
},
text: false
}).next().button({
icons: {
2010-09-10 02:43:06 +00:00
primary: "ui-icon-locked"
2010-01-20 14:00:14 +00:00
}
}).next().button({
icons: {
2010-09-10 02:43:06 +00:00
primary: "ui-icon-gear",
secondary: "ui-icon-triangle-1-s"
2010-01-20 14:00:14 +00:00
}
}).next().button({
icons: {
2010-09-10 02:43:06 +00:00
primary: "ui-icon-gear",
secondary: "ui-icon-triangle-1-s"
2010-01-20 14:00:14 +00:00
},
text: false
});
});
</script>
</head>
<body>
<div class="demo">
2010-09-10 02:43:06 +00:00
<button>Button with icon only</button>
<button>Button with icon on the left</button>
<button>Button with two icons</button>
<button>Button with two icons and no text</button>
2010-01-20 14:00:14 +00:00
</div><!-- End demo -->
<div class="demo-description">
<p>Some buttons with various combinations of text and icons, here specified via metadata.</p>
</div><!-- End demo-description -->
</body>
</html>