| 1 |
<!DOCTYPE html> |
| 2 |
<html> |
| 3 |
<head> |
| 4 |
<meta http-equiv="Content-type" content="text/html; charset=utf-8"> |
| 5 |
<title>Calendar I18N Test</title> |
| 6 |
|
| 7 |
|
| 8 |
<link id="themeStyles" rel="stylesheet" href="../../../dijit/themes/claro/claro.css"/> |
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
<script type="text/javascript" src="../../../dojo/dojo.js" |
| 14 |
data-dojo-config="parseOnLoad: true, isDebug: true, extraLocale: ['en-us', 'ar-sy', 'es-es', 'zh-cn']"></script> |
| 15 |
|
| 16 |
|
| 17 |
<script type="text/javascript" src="../_testCommon.js"></script> |
| 18 |
|
| 19 |
<script type="text/javascript"> |
| 20 |
dojo.require("dijit.dijit"); // optimize: load dijit layer |
| 21 |
dojo.require("dijit.Calendar"); |
| 22 |
dojo.require("dojo.date.locale"); |
| 23 |
dojo.require("dojo.parser"); // scan page for widgets |
| 24 |
|
| 25 |
function myHandler(id,newValue){ |
| 26 |
console.debug("onChange for id = " + id + ", value: " + newValue); |
| 27 |
} |
| 28 |
</script> |
| 29 |
</head> |
| 30 |
<body class="claro"> |
| 31 |
|
| 32 |
<h1 class="testTitle">Dijit Calendar I18N Test</h1> |
| 33 |
|
| 34 |
before |
| 35 |
|
| 36 |
<input id="calendar1" data-dojo-type="dijit/Calendar" data-dojo-props='onChange:function(val){ myHandler(this.id, val); }, lang:"en-us"'/> |
| 37 |
<input id="calendar2" data-dojo-type="dijit/Calendar" data-dojo-props='onChange:function(val){ myHandler(this.id, val); }, lang:"es-es"'/> |
| 38 |
<input id="calendar3" data-dojo-type="dijit/Calendar" data-dojo-props='onChange:function(val){ myHandler(this.id, val); }, lang:"zh-cn"'/> |
| 39 |
<input id="calendar4" data-dojo-type="dijit/Calendar" data-dojo-props='onChange:function(val){ myHandler(this.id, val); }, lang:"ar-sy"'/> |
| 40 |
|
| 41 |
after |
| 42 |
|
| 43 |
</body> |
| 44 |
</html> |