-
Notifications
You must be signed in to change notification settings - Fork 0
/
toolbox.json.html
68 lines (68 loc) · 2.31 KB
/
toolbox.json.html
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>HTML to contain some JSON code</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
<div><textarea style="width: 100%; height: 100px;" cols="1" rows="1">
["dijit.TitlePane",
{id:"testRendering",
title:"Toolbar (click to expand) - Zen Notebook",
style:{top:"30px",right:"30px"},closable:true,open:false},
[["CENTER", {},
[["dijit.form.Button",
{label:"Clear the Canvas",
onClick:function() {
alert("Currently this button is broken.");
zen.clearTheCanvas(topComponents);
topCompons = [];
}},
[]],
["BR", {}, []],
["dijit.form.Button",
{label:"red DIV",onClick:function(){test(tree1)}}, []],
["dijit.form.Button",
{label:"red DIV with orange DIV",onClick:function(){test(tree2)}}, []],
["dijit.form.Button",
{label:"red DIV with table",onClick:function(){test(tree3)}}, []],
["dijit.form.Button",
{label:"DIV with P and red ContentPane",
onClick:function(){test(tree4)}}, []],
["BR", {}, []],
//FIXME: ["text", {}, []],
//["BR", {}, []],
["dijit.form.Button",
{label:"DIV with<br />ContentPane (class:box)",
onClick:function(){test(tree5)}}, []],
["dijit.form.Button",
{label:"DIV with P & red ContentPane<br />with box ContentPane with DIV",
onClick:function(){test(tree6)}}, []],
["dijit.form.Button",
{label:"Iframe",
onClick:function(){
test(tree11);
}}, []],
["dijit.form.Button",
{label:"Iframe click handler",
onClick:function(){
dojo.addOnLoad(function() {
var ibody = dojo.query("body>div>iframe#iframe")[0].contentDocument.body;
dojo.connect(
ibody,
"onclick",
null,
function(ev) { alert('clicked on body'); dojo.stopEvent(ev); }
);
});
alert("Added click handler for the Iframe");
}}, []],
["dijit.form.Button",
{label:"AccordionContainer<br />with AccordionPanes, each with DIV",
onClick:function(){test(tree9)}}, []],
["dijit.form.Button",
{label:"AccordionContainer<br />with AccordionPanes, each with DIV",
onClick:function(){test(tree10)}}, []]]]]]
</textarea></div>
</body>
</html>