1 | <!DOCTYPE html> |
---|
2 | <html lang="en"> |
---|
3 | <head> |
---|
4 | <title>Calendar - Min/Max Date Range</title> |
---|
5 | <meta charset="utf-8" /> |
---|
6 | <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> |
---|
7 | <meta name="description" content="" /> |
---|
8 | <meta name="keywords" content="" /> |
---|
9 | <meta name="author" content="ComponentOne" /> |
---|
10 | <link href="../../themes/rocket/jquery-wijmo.css" rel="stylesheet" type="text/css" /> |
---|
11 | <script src="../../external/jquery-1.8.0.min.js" type="text/javascript"></script> |
---|
12 | <script src="../../external/jquery-ui-1.8.23.custom.min.js" type="text/javascript"></script> |
---|
13 | <link href="../../themes/wijmo/jquery.wijmo.wijcalendar.css" rel="stylesheet" type="text/css" /> |
---|
14 | <script src="../../external/globalize.min.js" type="text/javascript"></script> |
---|
15 | <script src="../../wijmo/jquery.wijmo.wijpopup.js" type="text/javascript"></script> |
---|
16 | <script src="../../wijmo/jquery.wijmo.wijcalendar.js" type="text/javascript"></script> |
---|
17 | <script type="text/javascript"> |
---|
18 | $(function () { |
---|
19 | $("#calendar1").wijcalendar({ |
---|
20 | displayDate: new Date('2010/08/1'), |
---|
21 | minDate: new Date('2010/08/16'), |
---|
22 | maxDate: new Date('2010/08/25') |
---|
23 | }); |
---|
24 | }); |
---|
25 | </script> |
---|
26 | </head> |
---|
27 | <body class="demo-single"> |
---|
28 | <div class="container"> |
---|
29 | <div class="header"> |
---|
30 | <h2> |
---|
31 | Selection Range</h2> |
---|
32 | </div> |
---|
33 | <div class="main demo"> |
---|
34 | <!-- Begin demo markup --> |
---|
35 | <div id="calendar1"> |
---|
36 | </div> |
---|
37 | <!-- End demo markup --> |
---|
38 | <div class="demo-options"> |
---|
39 | <!-- Begin options markup --> |
---|
40 | <!-- End options markup --> |
---|
41 | </div> |
---|
42 | </div> |
---|
43 | <div class="footer demo-description"> |
---|
44 | <p> |
---|
45 | This sample shows how to set the minDate option and the maxDate option to show a |
---|
46 | specific range of dates. |
---|
47 | </p> |
---|
48 | </div> |
---|
49 | </div> |
---|
50 | </body> |
---|
51 | </html> |
---|