1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94
| <html>
<head>
<title>Gestion Dosssier</title>
<script type="text/javascript" src="dojo/dojo.js" djConfig="parseOnLoad: true"></script>
<script type="text/javascript"></script>
<style type="text/css">
@import "js/dijit/themes/tundra/tundra.css";
@import "js/dojo/resources/dojo.css";
</style>
<link rel="stylesheet" type="text/css" href="js/dijit/themes/nihilo/nihilo.css"/>
<script type="text/javascript">
dojo.require("dojo.data.ItemFileReadStore");
dojo.require("dijit.Tree");
dojo.require("dijit.form.TextBox");
dojo.addOnLoad(function() {
var tmpData = [{
"name":"Refrigerator",
"submenu":
[{
"name":"Vegetables",
"submenu":[
{
"name":"Carrot",
"submenu":[]
},
{
"name":"Onion",
"submenu":[]
}
]
},
{
"name":"Fruits",
"submenu":[
{
"name":"Orange",
"submenu":[]
},
{
"name":"Apple",
"submenu":[{"name":"orange color"},
{"name":"green color"}]
}
]
}]
}];
var store = new dojo.data.ItemFileReadStore({
data: {
label: 'name',
items: tmpData
}
});
new dijit.Tree({
model: treeModel
},
"TestTree");
new dijit.form.TextBox({
value: "Nihilo",
disabled: "disabled"
},
"label1");
});
</script>
</head>
<body class="nihilo">
<div id="label1">
</div>
<br/>
<div id="TestTree">
</div>
</body>
</body>
</html> |
Partager