1 | <!doctype html> |
---|
2 | <html lang="en"> |
---|
3 | <head> |
---|
4 | <title>ProgressBar - Direction</title> |
---|
5 | <meta charset="utf-8" /> |
---|
6 | <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> |
---|
7 | <meta name="description" content="Slider lets you input two values, an upper and a lower bound, on the track." /> |
---|
8 | <meta name="keywords" content="" /> |
---|
9 | <meta name="author" content="ComponentOne" /> |
---|
10 | |
---|
11 | <link href="../../themes/rocket/jquery-wijmo.css" rel="stylesheet" type="text/css" /> |
---|
12 | |
---|
13 | <link href="../../themes/Wijmo/jquery.wijmo.wijprogressbar.css" rel="stylesheet" |
---|
14 | type="text/css" /> |
---|
15 | <script src="../../external/jquery-1.8.0.min.js" type="text/javascript"></script> |
---|
16 | <script src="../../external/jquery-ui-1.8.23.custom.min.js" type="text/javascript"></script> |
---|
17 | <script src="../../Wijmo/jquery.wijmo.wijutil.js" type="text/javascript"></script> |
---|
18 | <script src="../../Wijmo/jquery.wijmo.wijtooltip.js" type="text/javascript"></script> |
---|
19 | <script src="../../Wijmo/jquery.wijmo.wijprogressbar.js" type="text/javascript"></script> |
---|
20 | <style type="text/css"> |
---|
21 | .option-row li |
---|
22 | { |
---|
23 | margin: 3px 0; |
---|
24 | } |
---|
25 | </style> |
---|
26 | <script type="text/javascript"> |
---|
27 | $(document).ready(function () { |
---|
28 | $("#progressbar1").wijprogressbar({ |
---|
29 | value: 50, |
---|
30 | animationOptions: { |
---|
31 | duration: 1000 |
---|
32 | } |
---|
33 | }); |
---|
34 | $("#value").blur(function () { |
---|
35 | if ($(this).val() == "") return; |
---|
36 | var value = parseInt($(this).val()); |
---|
37 | $("#progressbar1").wijprogressbar("option", "value", value); |
---|
38 | }); |
---|
39 | $("#labelAlign").change(function () { |
---|
40 | $("#progressbar1").wijprogressbar("option", "labelAlign", this.value); |
---|
41 | }); |
---|
42 | $("#fillDirection").change(function () { |
---|
43 | $("#progressbar1").wijprogressbar("option", "fillDirection", this.value); |
---|
44 | }); |
---|
45 | }); |
---|
46 | |
---|
47 | </script> |
---|
48 | </head> |
---|
49 | <body class="demo-single"> |
---|
50 | <div class="container"> |
---|
51 | <div class="header"> |
---|
52 | <h2> |
---|
53 | Direction</h2> |
---|
54 | </div> |
---|
55 | <div class="main demo"> |
---|
56 | <!-- Begin demo markup --> |
---|
57 | <div id="progressbar1"> |
---|
58 | </div> |
---|
59 | <!-- End demo markup --> |
---|
60 | <div class="demo-options"> |
---|
61 | <!-- Begin options markup --> |
---|
62 | <div class="option-row"> |
---|
63 | <label> |
---|
64 | Value</label> |
---|
65 | <input type="text" id="value" value="50" /> |
---|
66 | </div> |
---|
67 | <div class="option-row"> |
---|
68 | <label> |
---|
69 | Label Align</label> |
---|
70 | <select id="labelAlign"> |
---|
71 | <option value="east">east</option> |
---|
72 | <option value="west">west</option> |
---|
73 | <option value="center" selected="selected">center</option> |
---|
74 | <option value="north">north</option> |
---|
75 | <option value="south">south</option> |
---|
76 | <option value="running">running</option> |
---|
77 | </select>(if select running,please change the value) |
---|
78 | </div> |
---|
79 | <div class="option-row"> |
---|
80 | <label> |
---|
81 | Fill Direction</label> |
---|
82 | <select id="fillDirection"> |
---|
83 | <option value="east">east</option> |
---|
84 | <option value="west">west</option> |
---|
85 | <option value="south">south</option> |
---|
86 | <option value="north">north</option> |
---|
87 | </select> |
---|
88 | </div> |
---|
89 | <!-- End options markup --> |
---|
90 | </div> |
---|
91 | <div class="footer demo-description"> |
---|
92 | <p> |
---|
93 | This sample demonstrates the wijprogressbar widget's value, labelAlign, orientation, |
---|
94 | and fillDirection options. To change the value, enter a number between 0 and 100 |
---|
95 | into the Value text box. To change the label alignment, click the Label Align drop-down |
---|
96 | arrow and select an alignment from the drop-down box. To set the fill direction, |
---|
97 | click the Fill Direction drop-down arrow and select a direction; east and west will |
---|
98 | give you a horizontal progress bar, and north and south will give you a vertical |
---|
99 | progress bar. |
---|
100 | </p> |
---|
101 | </div> |
---|
102 | </div> |
---|
103 | </body> |
---|
104 | </html> |
---|