source: ether_statistics/web/resources/js/Wijmo.2.2.2/Wijmo-Complete/development-bundle/samples/inputnumber/percent.html @ 651

Last change on this file since 651 was 651, checked in by vmipsl, 12 years ago

wijmo

File size: 2.1 KB
Line 
1<!DOCTYPE html>
2<html lang="en">
3<head>
4        <title>Input Number - Percent</title>
5        <meta charset="utf-8" />
6        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
7        <meta name="description" content="Percent sample." />
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        <script src="../../external/jquery-1.8.0.min.js" type="text/javascript"></script>
14        <script src="../../external/jquery-ui-1.8.23.custom.min.js" type="text/javascript"></script>
15        <link href="../../themes/wijmo/jquery.wijmo.wijinput.css" rel="stylesheet" type="text/css" />
16        <script src="../../external/globalize.min.js" type="text/javascript"></script>
17        <script src="../../external/jquery.mousewheel.min.js" type="text/javascript"></script>
18        <script src="../../external/jquery.wijmo-open.all.2.2.2.min.js" type="text/javascript"></script>
19        <script src="../../wijmo/jquery.plugin.wijtextselection.js" type="text/javascript"></script>
20        <script src="../../wijmo/jquery.wijmo.wijinputcore.js" type="text/javascript"></script>
21        <script src="../../wijmo/jquery.wijmo.wijinputnumber.js" type="text/javascript"></script>
22        <script type="text/javascript">
23                $(function () {
24                        $("#textbox1").wijinputnumber(
25                    {
26                            type: 'percent',
27                            decimalPlaces: 4,
28                            showSpinner: true
29                    });
30                });
31        </script>
32</head>
33<body class="demo-single">
34        <div class="container">
35                <div class="header">
36                        <h2>
37                                Percent</h2>
38                </div>
39                <div class="main demo">
40                        <!-- Begin demo markup -->
41                        <input type="text" id="textbox1" value="50%" />
42                        <h6>
43                                Options</h6>
44                        <p>
45                                value=50; decimalPlaces=4</p>
46                        <!-- End demo markup -->
47                        <div class="demo-options">
48                                <!-- Begin options markup -->
49                                <!-- End options markup -->
50                        </div>
51                </div>
52                <div class="footer demo-description">
53                        <p>
54                        This example shows how to create a percentage input with four decimal places by setting the <b>type</b> and <b>decimalPlaces</b> options.       </p>
55                </div>
56        </div>
57</body>
58</html>
Note: See TracBrowser for help on using the repository browser.