aboutsummaryrefslogtreecommitdiff
path: root/includes/js/dijit/themes/templateThemeTest.html
blob: 0573ba7c17cd8dbd713aabe768d87b3845b79b69 (plain)
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
		"http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
		<title>Test Widget Templates in Multiple Themes</title>

		<style type="text/css">
			@import "../../dojo/resources/dojo.css";
			@import "noir/noir.css";
			@import "tundra/tundra.css";
			@import "soria/soria.css";
			@import "../tests/css/dijitTests.css"; 

			/* group multiple buttons in a row */
			body {
				margin:10px;
			}
			.box {
				display: block;
			}
			.box .dijitButton {
				margin-right: 10px;
			}
		</style>

		<script type="text/javascript" src="../../dojo/dojo.js"
			djConfig="parseOnLoad: true, isDebug: true"></script>
		<script type="text/javascript" src="../tests/_testCommon.js"></script>

		<script type="text/javascript">
			dojo.require("dijit.Menu");
			dojo.require("dijit.form.Button");
			dojo.require("dijit.form.ComboBox");
			dojo.require("dijit.form.NumberSpinner");
			dojo.require("dojo.parser");
			logMessage = console.debug;
		</script>
	</head>
	<body>
		<h2>Tundra</h2>
		<div id='tundra' class="box tundra">
			<button dojoType="dijit.form.Button" onClick='logMessage("clicked simple")'>
				Button
			</button>
			<button dojoType="dijit.form.Button" iconClass="noteIcon" onClick='logMessage("clicked simple")'>
				Button w/image
			</button>
			<button dojoType="dijit.form.Button" onClick='logMessage("clicked simple")' disabled='true'>
				Disabled Button
			</button>
		<br><br>
			<button dojoType="dijit.form.DropDownButton">
				<span>Drop Down Button</span>
				<div dojoType="dijit.Menu" style="display: none;">
					<div dojoType="dijit.MenuItem"  iconClass="dijitEditorIconCut"
						onClick="logMessage('not actually cutting anything, just a test!')">Cut</div>
					<div dojoType="dijit.MenuItem"  iconClass="dijitEditorIconCopy"
						onClick="logMessage('not actually copying anything, just a test!')">Copy</div>
					<div dojoType="dijit.MenuItem"  iconClass="dijitEditorIconPaste"
						onClick="logMessage('not actually pasting anything, just a test!')">Paste</div>
				</div>
			</button>
			<button dojoType="dijit.form.DropDownButton" iconClass="noteIcon">
				<span>Button w/image</span>
				<div dojoType="dijit.Menu" style="display: none;">
					<div dojoType="dijit.MenuItem"  iconClass="dijitEditorIconCut"
						onClick="logMessage('not actually cutting anything, just a test!')">Cut</div>
					<div dojoType="dijit.MenuItem"  iconClass="dijitEditorIconCopy"
						onClick="logMessage('not actually copying anything, just a test!')">Copy</div>
					<div dojoType="dijit.MenuItem"  iconClass="dijitEditorIconPaste"
						onClick="logMessage('not actually pasting anything, just a test!')">Paste</div>
				</div>
			</button>
			<button dojoType="dijit.form.DropDownButton" disabled='true'>
				<span>Drop Down Disabled</span>
				<div dojoType="dijit.Menu" style="display: none;">
					<div dojoType="dijit.MenuItem"  iconClass="dijitEditorIconCut"
						onClick="logMessage('not actually cutting anything, just a test!')">Cut</div>
					<div dojoType="dijit.MenuItem"  iconClass="dijitEditorIconCopy"
						onClick="logMessage('not actually copying anything, just a test!')">Copy</div>
					<div dojoType="dijit.MenuItem"  iconClass="dijitEditorIconPaste"
						onClick="logMessage('not actually pasting anything, just a test!')">Paste</div>
				</div>
			</button>
		<br><br>
			<button dojoType="dijit.form.ComboButton" onClick='logMessage("clicked combo save")'>
				<span>Combo Button</span>
				<div dojoType="dijit.Menu" style="display: none;">
					<div dojoType="dijit.MenuItem" iconSrc="../../templates/buttons/save.gif"
						onClick="logMessage('not actually saving anything, just a test!')">Save</div>
					<div dojoType="dijit.MenuItem" iconSrc="../../templates/buttons/save.gif"
						onClick="logMessage('not actually saving anything, just a test!')">Save As</div>
				</div>
			</button>
			<button dojoType="dijit.form.ComboButton" iconClass="noteIcon" onClick='logMessage("clicked combo save")'>
				<span>Combo w/image</span>
				<div dojoType="dijit.Menu" style="display: none;">
					<div dojoType="dijit.MenuItem"  iconClass="dijitEditorIconSave"
						onClick="logMessage('not actually saving anything, just a test!')">Save</div>
					<div dojoType="dijit.MenuItem"
						onClick="logMessage('not actually saving anything, just a test!')">Save As</div>
				</div>
			</button>
			<button dojoType="dijit.form.ComboButton" onClick='logMessage("clicked combo save")' disabled='true'>
				<span>Combo Disabled</span>
				<div dojoType="dijit.Menu" style="display: none;">
					<div dojoType="dijit.MenuItem"  iconClass="dijitEditorIconSave"
						onClick="logMessage('not actually saving anything, just a test!')">Save</div>
					<div dojoType="dijit.MenuItem"
						onClick="logMessage('not actually saving anything, just a test!')">Save As</div>
				</div>
			</button>
		<br><br>
			<input dojoType="dijit.form.ComboBox"
					value="California"
					class="medium"
					url="../tests/form/states.json"
					searchAttr="name"
					labelField="label"
					labelType="html"
					style="width: 300px;"
					name="state2"
					promptMessage="Please enter a state"
			>

			<input dojoType="dijit.form.ComboBox"
					value="California"
					class="medium"
					url="../tests/form/states.json"
					searchAttr="name"
					labelField="label"
					labelType="html"
					style="width: 300px;"
					name="state2"
					promptMessage="Please enter a state"
					disabled="true"
			>

		<br><br>
		<input dojoType="dijit.form.NumberSpinner" 
			onChange="console.debug('onChange fired for widget id = ' + this.id + ' with value = ' + arguments[0]);"
			value="900" 
			constraints={max:1550,places:0}
			maxLength="10" 
		>


		<input dojoType="dijit.form.NumberSpinner" 
			onChange="console.debug('onChange fired for widget id = ' + this.id + ' with value = ' + arguments[0]);"
			value="900" 
			disabled='true'
			constraints={max:1550,places:0}
			maxLength="10" 
		>

		</div>
		<br clear=both>

		<h2>Noir</h2>
		<div id='noir' class="box noir">
		</div>
		<br clear=both>

		<h2>Soria</h2>
		<div id='soria' class="box soria">
		</div>
		<br clear=both>

		<h2>a11y mode</h2>
		<div id='a11y' class="box dijit_a11y">
		</div>
		<br clear=both>

		

<script language='javascript'>
	var html = dojo.byId("tundra").innerHTML;
	dojo.byId("noir").innerHTML = html;
	dojo.byId("a11y").innerHTML = html;
	dojo.byId("soria").innerHTML = html;
</script>

	</body>
</html>