annotate jquery-ui/development-bundle/demos/button/splitbutton.html @ 51:5d636ba6b9cb default tip

Merge with b5d89c03f9585013d464f0240f6d82751b77186f
author dwinter
date Thu, 05 Dec 2013 13:24:57 +0100
parents b2e4605f20b2
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
1 <!DOCTYPE html>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
2 <html lang="en">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
3 <head>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
4 <meta charset="utf-8">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
5 <title>jQuery UI Button - Split button</title>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
6 <link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
7 <script src="../../jquery-1.5.1.js"></script>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
8 <script src="../../ui/jquery.ui.core.js"></script>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
9 <script src="../../ui/jquery.ui.widget.js"></script>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
10 <script src="../../ui/jquery.ui.button.js"></script>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
11 <link rel="stylesheet" href="../demos.css">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
12 <script>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
13 $(function() {
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
14 $( "#rerun" )
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
15 .button()
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
16 .click(function() {
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
17 alert( "Running the last action" );
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
18 })
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
19 .next()
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
20 .button( {
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
21 text: false,
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
22 icons: {
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
23 primary: "ui-icon-triangle-1-s"
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
24 }
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
25 })
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
26 .click(function() {
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
27 alert( "Could display a menu to select an action" );
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
28 })
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
29 .parent()
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
30 .buttonset();
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
31 });
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
32 </script>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
33 <style>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
34
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
35 </style>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
36 </head>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
37 <body>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
38
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
39 <div class="demo">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
40
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
41 <div>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
42 <button id="rerun">Run last action</button>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
43 <button id="select">Select an action</button>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
44 </div>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
45
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
46 </div><!-- End demo -->
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
47
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
48
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
49
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
50 <div class="demo-description">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
51 <p>An example of a split button built with two buttons: A plan button with just text, one with only a primary icon and no text. Both are grouped together in a set.</p>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
52 </div><!-- End demo-description -->
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
53
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
54 </body>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
55 </html>