source: Dev/trunk/src/client/dojox/widget/tests/test_MultiSelectCalendar.html

Last change on this file was 483, checked in by hendrikvanantwerpen, 11 years ago

Added Dojo 1.9.3 release.

File size: 2.2 KB
Line 
1<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2<html>
3<head>
4<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5<title>Multi select calendar test </title>
6<style type="text/css">
7                @import "../../../dijit/themes/claro/claro.css";
8</style>
9    <script type="text/javascript" src="../../../dojo/dojo.js"  data-dojo-config="parseOnLoad: true"></script>
10    <script type="text/javascript">
11       dojo.require("dojo.parser");
12                dojo.require('dojox.widget.MultiSelectCalendar');
13    </script>
14</head>
15
16
17<body class="claro">
18<div>Calendar #1: No date selected dijit.byId('MSC1').get('value') should return an empty array. Add some dates and check again. You can select/unselect single dates or ranges from right to left or left to right. Use your mouse or keyboard</div>
19<div dojoType="dojox.widget.MultiSelectCalendar" id="MSC1" value="[]" style="display:inline-block"></div>
20</br>
21<div style="margin-top: 2em;">Calendar #2: a few date selected upon instantiation dijit.byId('MSC2').get('value') should return those selected dates. Since returnIsoRanges is by default set to false, it will return all the dates individually</div>
22<div dojoType="dojox.widget.MultiSelectCalendar" value=['2011-05-07','2011-05-08','2011-05-09','2011-05-23'] id="MSC2" style="display:inline-block"></div>
23
24<div style="margin-top: 2em;">Calendar #3: same dates selected as #2 but with returnIsoRanges=true. dijit.byId('MSC3').get('value') should return all selected dates individually</div>
25<div dojoType="dojox.widget.MultiSelectCalendar" returnIsoRanges=true value=['2011-05-07','2011-05-08','2011-05-09','2011-05-23'] id="MSC3" style="display:inline-block"></div>
26
27<div style="margin-top: 2em;">Calendar #4: We instantiate calendar with a range (with the two dates in the wrong order,) with returnIsoRanges=false dijit.byId('MSC4').get('value') should return all the dates in the month of may. Do the following: dijit.byId('MSC4').set('returnIsoRanges',true)  and then re-poll the value, you should have it returned as an iso range</div>
28<div dojoType="dojox.widget.MultiSelectCalendar" value=['2011-05-31/2011-05-01'] id="MSC4" style="display:inline-block"></div>
29</body>
30</html>
31 
Note: See TracBrowser for help on using the repository browser.