| 1 |
<!DOCTYPE html> |
| 2 |
<html> |
| 3 |
<head> |
| 4 |
|
| 5 |
<meta http-equiv="Content-type" content="text/html; charset=utf-8"> |
| 6 |
|
| 7 |
<title>Dijit Theme Tester</title> |
| 8 |
|
| 9 |
<script type="text/javascript" src="../tests/boilerplate.js"></script> |
| 10 |
|
| 11 |
<script> |
| 12 |
var startTime = new Date(); |
| 13 |
</script> |
| 14 |
|
| 15 |
<style type="text/css"> |
| 16 |
html, body { |
| 17 |
height: 100%; |
| 18 |
width: 100%; |
| 19 |
padding: 0; |
| 20 |
border: 0; |
| 21 |
} |
| 22 |
|
| 23 |
#main { |
| 24 |
height: 100%; |
| 25 |
width: 100%; |
| 26 |
border: 0; |
| 27 |
} |
| 28 |
|
| 29 |
/*** |
| 30 |
Uncomment this rule to test border-box sizing |
| 31 |
* { |
| 32 |
-moz-box-sizing: border-box; |
| 33 |
box-sizing: border-box; |
| 34 |
} |
| 35 |
***/ |
| 36 |
|
| 37 |
#header { |
| 38 |
margin: 0; |
| 39 |
} |
| 40 |
|
| 41 |
#leftAccordion { |
| 42 |
width: 25%; |
| 43 |
} |
| 44 |
|
| 45 |
#bottomTabs { |
| 46 |
height: 40%; |
| 47 |
} |
| 48 |
|
| 49 |
#hs-1width { |
| 50 |
width: 400px; |
| 51 |
height: 40px; |
| 52 |
} |
| 53 |
|
| 54 |
/* pre-loader specific stuff to prevent unsightly flash of unstyled content */ |
| 55 |
#loader { |
| 56 |
padding: 0; |
| 57 |
margin: 0; |
| 58 |
position: absolute; |
| 59 |
top: 0; |
| 60 |
left: 0; |
| 61 |
width: 100%; |
| 62 |
height: 100%; |
| 63 |
background: #ededed; |
| 64 |
z-index: 999; |
| 65 |
vertical-align: middle; |
| 66 |
} |
| 67 |
|
| 68 |
#loaderInner { |
| 69 |
padding: 5px; |
| 70 |
position: relative; |
| 71 |
left: 0; |
| 72 |
top: 0; |
| 73 |
width: 175px; |
| 74 |
background: #3c3; |
| 75 |
color: #fff; |
| 76 |
} |
| 77 |
|
| 78 |
#indTestBar, |
| 79 |
#setTestBar { |
| 80 |
width: 400px; |
| 81 |
} |
| 82 |
|
| 83 |
hr.spacer { |
| 84 |
border: 0; |
| 85 |
background-color: #ededed; |
| 86 |
width: 80%; |
| 87 |
height: 1px; |
| 88 |
} |
| 89 |
|
| 90 |
/* rules used to test custom setting of TextBox padding */ |
| 91 |
.inputPadding0 .dijitInputField { |
| 92 |
padding: 0 !important; |
| 93 |
} |
| 94 |
|
| 95 |
.inputPadding1 .dijitInputField { |
| 96 |
padding: 1px !important; |
| 97 |
} |
| 98 |
|
| 99 |
.inputPadding2 .dijitInputField { |
| 100 |
padding: 2px !important; |
| 101 |
} |
| 102 |
|
| 103 |
.inputPadding3 .dijitInputField { |
| 104 |
padding: 3px !important; |
| 105 |
} |
| 106 |
|
| 107 |
.inputPadding4 .dijitInputField { |
| 108 |
padding: 4px !important; |
| 109 |
} |
| 110 |
|
| 111 |
.inputPadding5 .dijitInputField { |
| 112 |
padding: 5px !important; |
| 113 |
} |
| 114 |
</style> |
| 115 |
|
| 116 |
|
| 117 |
<script type="text/javascript"> |
| 118 |
window.__globalList = { |
| 119 |
// ignore globals created by this file |
| 120 |
setBackground: true, |
| 121 |
dojo: true, |
| 122 |
dijit: true, |
| 123 |
dojox: true, |
| 124 |
showDialog: true, |
| 125 |
showDialogAb: true, |
| 126 |
setTextBoxPadding: true, |
| 127 |
logStrayGlobals: true, |
| 128 |
logWidgets: true, tearDown: true, |
| 129 |
continentStore: true, |
| 130 |
continentModel: true, |
| 131 |
dom: true, |
| 132 |
registry: true, |
| 133 |
require: true, |
| 134 |
dojoConfig: true |
| 135 |
}; |
| 136 |
|
| 137 |
// ignore natural globals |
| 138 |
for(var i in window){ |
| 139 |
window.__globalList[i] = true; |
| 140 |
} |
| 141 |
</script> |
| 142 |
|
| 143 |
|
| 144 |
<script type="text/javascript"> |
| 145 |
require([ |
| 146 |
"dojo/_base/array", "dojo/_base/fx", "dojo/_base/window", "dojo/dom", "dojo/dom-class", "dojo/dom-geometry", "dojo/dom-style", |
| 147 |
"dojo/hccss", "dojo/date/locale", "dojo/parser", "dojo/store/Memory", |
| 148 |
"dijit/registry", "dijit/tree/ObjectStoreModel", |
| 149 |
|
| 150 |
"dijit/CheckedMenuItem", "dijit/RadioMenuItem", "dijit/MenuSeparator", |
| 151 |
|
| 152 |
// Editors used by InlineEditBox. Must be pre-loaded. |
| 153 |
"dijit/form/Textarea", "dijit/form/DateTextBox", "dijit/form/TimeTextBox", "dijit/form/FilteringSelect", |
| 154 |
|
| 155 |
// These plugins are used by the Editor, and need to be pre-loaded |
| 156 |
"dijit/_editor/plugins/LinkDialog", // for createLink |
| 157 |
"dijit/_editor/plugins/FontChoice", // for fontName |
| 158 |
|
| 159 |
// Modules referenced by the parser |
| 160 |
"dijit/Menu", "dijit/PopupMenuItem", "dijit/ColorPalette", "dijit/layout/BorderContainer", "dijit/MenuBar", |
| 161 |
"dijit/PopupMenuBarItem", "dijit/layout/AccordionContainer", "dijit/layout/ContentPane", "dijit/ConfirmTooltipDialog", |
| 162 |
"dijit/Tree", "dijit/layout/TabContainer", "dijit/form/ComboButton", "dijit/form/ToggleButton", |
| 163 |
"dijit/form/CheckBox", "dijit/form/RadioButton", "dijit/form/CurrencyTextBox", "dijit/form/NumberSpinner", |
| 164 |
"dijit/form/Select", "dijit/Editor", "dijit/form/VerticalSlider", "dijit/form/VerticalRuleLabels", |
| 165 |
"dijit/form/VerticalRule", "dijit/form/HorizontalSlider", "dijit/form/HorizontalRuleLabels", |
| 166 |
"dijit/form/HorizontalRule", "dijit/TitlePane", "dijit/ProgressBar", "dijit/InlineEditBox", "dojo/dnd/Source", |
| 167 |
"dijit/ConfirmDialog", |
| 168 |
|
| 169 |
// Don't call the parser until the DOM has finished loading |
| 170 |
"dojo/domReady!" |
| 171 |
], function(array, baseFx, win, dom, domClass, domGeom, domStyle, has, locale, parser, Memory, registry, ObjectStoreModel, |
| 172 |
CheckedMenuItem, RadioMenuItem, MenuSeparator){ |
| 173 |
// If you are doing box-model sizing then need to tell dom-geometry, see #15104 |
| 174 |
if(domStyle.get(document.body, "boxSizing") == "border-box" || |
| 175 |
domStyle.get(document.body, "MozBoxSizing") == "border-box"){ |
| 176 |
domGeom.boxModel = "border-box"; |
| 177 |
} |
| 178 |
|
| 179 |
// various function ripped out of inline script type=dojo/* blocks |
| 180 |
showDialog = function(){ |
| 181 |
var dlg = registry.byId('dialog1'); |
| 182 |
dlg.show(); |
| 183 |
// avoid (trying to) restore focus to a closed menu, go to MenuBar instead |
| 184 |
dlg._savedFocus = dom.byId("header"); |
| 185 |
}; |
| 186 |
|
| 187 |
showDialogAb = function(){ |
| 188 |
var dlg = registry.byId('dialogAB'); |
| 189 |
dlg.show(); |
| 190 |
// avoid (trying to) restore focus to a closed menu, go to MenuBar instead |
| 191 |
dlg._savedFocus = dom.byId("header"); |
| 192 |
}; |
| 193 |
|
| 194 |
//var setTextBoxPadding; |
| 195 |
// current setting (if there is one) to override theme default padding on TextBox based widgets |
| 196 |
var currentInputPadding = ""; |
| 197 |
|
| 198 |
setTextBoxPadding = function(){ |
| 199 |
// summary: |
| 200 |
// Handler for when a MenuItem is clicked to set non-default padding for |
| 201 |
// TextBox widgets |
| 202 |
|
| 203 |
// Effectively ignore clicks on the currently checked MenuItem |
| 204 |
if(!this.get("checked")){ |
| 205 |
this.set("checked", true); |
| 206 |
} |
| 207 |
|
| 208 |
// val will be "theme default", "0px", "1px", ..., "5px" |
| 209 |
var val = this.get("label"); |
| 210 |
|
| 211 |
// Set class on body to get requested padding, and remove any previously set class |
| 212 |
if(currentInputPadding){ |
| 213 |
domClass.remove(win.body(), currentInputPadding); |
| 214 |
currentInputPadding = ""; |
| 215 |
} |
| 216 |
if(val != "theme default"){ |
| 217 |
currentInputPadding = "inputPadding" + val.replace("px", ""); |
| 218 |
domClass.add(win.body(), currentInputPadding); |
| 219 |
} |
| 220 |
|
| 221 |
// Clear previously checked MenuItem (radio-button effect). |
| 222 |
array.forEach(this.getParent().getChildren(), function(mi){ |
| 223 |
if(mi != this){ |
| 224 |
mi.set("checked", false); |
| 225 |
} |
| 226 |
}, this); |
| 227 |
}; |
| 228 |
|
| 229 |
logStrayGlobals = function(){ |
| 230 |
// summary: |
| 231 |
// Print all the global variables that we've created [by mistake] inside of dojo |
| 232 |
var strayGlobals = []; |
| 233 |
for(var i in window){ |
| 234 |
if(!window.__globalList[i]){ |
| 235 |
strayGlobals.push(i); |
| 236 |
} |
| 237 |
} |
| 238 |
if(strayGlobals.length){ |
| 239 |
console.warn("Stray globals: " + strayGlobals.join(", ")); |
| 240 |
} |
| 241 |
}; |
| 242 |
|
| 243 |
logWidgets = function(){ |
| 244 |
// summary: |
| 245 |
// Print all the widgets to console |
| 246 |
console.log("Widgets in registry:"); |
| 247 |
registry.forEach(function(w){ |
| 248 |
console.log(w); |
| 249 |
}); |
| 250 |
}; |
| 251 |
|
| 252 |
tearDown = function(){ |
| 253 |
// summary: |
| 254 |
// Destroy all widgets, top down, and then check for any orphaned widgets |
| 255 |
registry._destroyAll(); |
| 256 |
logWidgets(); |
| 257 |
}; |
| 258 |
|
| 259 |
// Data for Tree, ComboBox, InlineEditBox |
| 260 |
var data = [ |
| 261 |
{ id: "earth", name: "The earth", type: "planet", population: "6 billion"}, |
| 262 |
{ id: "AF", name: "Africa", type: "continent", population: "900 million", area: "30,221,532 sq km", |
| 263 |
timezone: "-1 UTC to +4 UTC", parent: "earth"}, |
| 264 |
{ id: "EG", name: "Egypt", type: "country", parent: "AF" }, |
| 265 |
{ id: "KE", name: "Kenya", type: "country", parent: "AF" }, |
| 266 |
{ id: "Nairobi", name: "Nairobi", type: "city", parent: "KE" }, |
| 267 |
{ id: "Mombasa", name: "Mombasa", type: "city", parent: "KE" }, |
| 268 |
{ id: "SD", name: "Sudan", type: "country", parent: "AF" }, |
| 269 |
{ id: "Khartoum", name: "Khartoum", type: "city", parent: "SD" }, |
| 270 |
{ id: "AS", name: "Asia", type: "continent", parent: "earth" }, |
| 271 |
{ id: "CN", name: "China", type: "country", parent: "AS" }, |
| 272 |
{ id: "IN", name: "India", type: "country", parent: "AS" }, |
| 273 |
{ id: "RU", name: "Russia", type: "country", parent: "AS" }, |
| 274 |
{ id: "MN", name: "Mongolia", type: "country", parent: "AS" }, |
| 275 |
{ id: "OC", name: "Oceania", type: "continent", population: "21 million", parent: "earth"}, |
| 276 |
{ id: "AU", name: "Australia", type: "country", population: "21 million", parent: "OC"}, |
| 277 |
{ id: "EU", name: "Europe", type: "continent", parent: "earth" }, |
| 278 |
{ id: "DE", name: "Germany", type: "country", parent: "EU" }, |
| 279 |
{ id: "FR", name: "France", type: "country", parent: "EU" }, |
| 280 |
{ id: "ES", name: "Spain", type: "country", parent: "EU" }, |
| 281 |
{ id: "IT", name: "Italy", type: "country", parent: "EU" }, |
| 282 |
{ id: "NA", name: "North America", type: "continent", parent: "earth" }, |
| 283 |
{ id: "MX", name: "Mexico", type: "country", population: "108 million", area: "1,972,550 sq km", |
| 284 |
parent: "NA" }, |
| 285 |
{ id: "Mexico City", name: "Mexico City", type: "city", population: "19 million", timezone: "-6 UTC", parent: "MX"}, |
| 286 |
{ id: "Guadalajara", name: "Guadalajara", type: "city", population: "4 million", timezone: "-6 UTC", parent: "MX" }, |
| 287 |
{ id: "CA", name: "Canada", type: "country", population: "33 million", area: "9,984,670 sq km", parent: "NA" }, |
| 288 |
{ id: "Ottawa", name: "Ottawa", type: "city", population: "0.9 million", timezone: "-5 UTC", parent: "CA"}, |
| 289 |
{ id: "Toronto", name: "Toronto", type: "city", population: "2.5 million", timezone: "-5 UTC", parent: "CA" }, |
| 290 |
{ id: "US", name: "United States of America", type: "country", parent: "NA" }, |
| 291 |
{ id: "SA", name: "South America", type: "continent", parent: "earth" }, |
| 292 |
{ id: "BR", name: "Brazil", type: "country", population: "186 million", parent: "SA" }, |
| 293 |
{ id: "AR", name: "Argentina", type: "country", population: "40 million", parent: "SA" } |
| 294 |
]; |
| 295 |
|
| 296 |
// Create test store. |
| 297 |
continentStore = new Memory({ |
| 298 |
data: data |
| 299 |
}); |
| 300 |
|
| 301 |
// Since dojo.store.Memory doesn't have various store methods we need, we have to add them manually |
| 302 |
continentStore.getChildren = function(object){ |
| 303 |
// Add a getChildren() method to store for the data model where |
| 304 |
// children objects point to their parent (aka relational model) |
| 305 |
return this.query({parent: this.getIdentity(object)}); |
| 306 |
}; |
| 307 |
|
| 308 |
// Create the model for the Tree |
| 309 |
continentModel = new ObjectStoreModel({store: continentStore, query: {id: "earth"}}); |
| 310 |
|
| 311 |
var loadCompleteTime = +new Date(); |
| 312 |
console.log("Total load time: " + (loadCompleteTime - startTime) + "ms"); |
| 313 |
|
| 314 |
parser.parse(dom.byId('container')).then(function(){ |
| 315 |
console.info("Total parse time: " + (+new Date() - loadCompleteTime) + "ms"); |
| 316 |
|
| 317 |
dom.byId('loaderInner').innerHTML += " done."; |
| 318 |
setTimeout(function hideLoader(){ |
| 319 |
baseFx.fadeOut({ |
| 320 |
node: 'loader', |
| 321 |
duration: 500, |
| 322 |
onEnd: function(n){ |
| 323 |
n.style.display = "none"; |
| 324 |
} |
| 325 |
}).play(); |
| 326 |
}, 250); |
| 327 |
|
| 328 |
logStrayGlobals(); |
| 329 |
|
| 330 |
// availableThemes[] is just a list of 'official' dijit themes, you can use ?theme=String |
| 331 |
// for 'un-supported' themes, too. (eg: yours) |
| 332 |
var availableThemes = [ |
| 333 |
{ theme: "claro", author: "Dojo", baseUri: "../themes/" }, |
| 334 |
{ theme: "tundra", author: "Dojo", baseUri: "../themes/" }, |
| 335 |
{ theme: "soria", author: "nikolai", baseUri: "../themes/" }, |
| 336 |
{ theme: "nihilo", author: "nikolai", baseUri: "../themes/" } |
| 337 |
]; |
| 338 |
|
| 339 |
// Get current theme, a11y, and dir setting for page |
| 340 |
var curTheme = location.search.replace(/.*theme=([a-z]+).*/, "$1") || "claro", |
| 341 |
a11y = has("highcontrast") || /a11y=true/.test(location.search), |
| 342 |
rtl = document.body.parentNode.dir == "rtl"; |
| 343 |
console.log("Theme: " + curTheme + ", high contrast = " + a11y + ", dir = " + (rtl ? "rtl" : "ltr")); |
| 344 |
|
| 345 |
function setUrl(theme, rtl, a11y){ |
| 346 |
// Function to reload page with specified theme, rtl, and a11y settings |
| 347 |
location.search = "?theme=" + theme + (rtl ? "&dir=rtl" : "") + (a11y ? "&a11y=true" : ""); |
| 348 |
} |
| 349 |
|
| 350 |
// Create menu choices to test other themes |
| 351 |
array.forEach(availableThemes, function(theme){ |
| 352 |
registry.byId('themeMenu').addChild(new RadioMenuItem({ |
| 353 |
id: theme.theme + "_radio", |
| 354 |
label: theme.theme, |
| 355 |
group: "theme", |
| 356 |
checked: theme.theme == curTheme, |
| 357 |
onClick: function(){ |
| 358 |
// Change theme, keep current a11y and rtl settings |
| 359 |
setUrl(theme.theme, a11y, rtl); |
| 360 |
} |
| 361 |
})); |
| 362 |
}); |
| 363 |
registry.byId('themeMenu').addChild(new MenuSeparator({})); |
| 364 |
registry.byId('themeMenu').addChild(new CheckedMenuItem({ |
| 365 |
label: "RTL", |
| 366 |
checked: rtl, |
| 367 |
onChange: function(val){ |
| 368 |
// Keep current theme and a11y setting, but use new dir setting |
| 369 |
setUrl(curTheme, val, a11y); |
| 370 |
} |
| 371 |
})); |
| 372 |
registry.byId('themeMenu').addChild(new CheckedMenuItem({ |
| 373 |
label: "high contrast", |
| 374 |
checked: a11y, |
| 375 |
onChange: function(val){ |
| 376 |
// Keep current theme and dir setting, but use high-contrast (or not-high-contrast) setting |
| 377 |
setUrl(curTheme, rtl, val); |
| 378 |
} |
| 379 |
})); |
| 380 |
|
| 381 |
// It's the server's responsibility to localize the date displayed in the (non-edit) version of an InlineEditBox, |
| 382 |
// but since we don't have a server we'll hack it in the client |
| 383 |
registry.byId("backgroundArea").set('value', locale.format(new Date(2005, 11, 30), { selector: 'date' })); |
| 384 |
|
| 385 |
var nineAm = new Date(0); |
| 386 |
nineAm.setHours(9); |
| 387 |
registry.byId("timePicker").set('value', locale.format(nineAm, { selector: 'time' })); |
| 388 |
}); |
| 389 |
}); |
| 390 |
</script> |
| 391 |
</head> |
| 392 |
<body class="claro"> |
| 393 |
|
| 394 |
<div id="loader"> |
| 395 |
<div id="loaderInner" style="direction:ltr;">Loading themeTester ...</div> |
| 396 |
</div> |
| 397 |
|
| 398 |
<script type="dojo/require"> |
| 399 |
dom: "dojo/dom", |
| 400 |
registry: "dijit/registry" |
| 401 |
</script> |
| 402 |
|
| 403 |
|
| 404 |
<div data-dojo-type="dijit/Menu" id="submenu1" data-dojo-props='contextMenuForWindow:true, style:"display:none"' |
| 405 |
style="display: none;"> |
| 406 |
<div data-dojo-type="dijit/MenuItem" |
| 407 |
data-dojo-props="onClick:function(){ alert('Hello world'); }">Enabled Item |
| 408 |
</div> |
| 409 |
<div data-dojo-type="dijit/MenuItem" data-dojo-props="disabled:true">Disabled Item</div> |
| 410 |
<div data-dojo-type="dijit/MenuSeparator"></div> |
| 411 |
<div data-dojo-type="dijit/MenuItem" |
| 412 |
data-dojo-props="iconClass:'dijitIconCut', onClick: function(){ alert('not actually cutting anything. Just a test!'); }"> |
| 413 |
Cut |
| 414 |
</div> |
| 415 |
<div data-dojo-type="dijit/MenuItem" |
| 416 |
data-dojo-props="iconClass:'dijitIconCopy', onClick:function(){ alert('not actually copying anything, just a test!'); }"> |
| 417 |
Copy |
| 418 |
</div> |
| 419 |
<div data-dojo-type="dijit/MenuItem" |
| 420 |
data-dojo-props="iconClass:'dijitIconPaste', onClick: function(){ alert('not actually pasting anything, just a test!'); }"> |
| 421 |
Paste |
| 422 |
</div> |
| 423 |
<div data-dojo-type="dijit/MenuSeparator"></div> |
| 424 |
<div data-dojo-type="dijit/PopupMenuItem"> |
| 425 |
<span>Enabled Submenu</span> |
| 426 |
|
| 427 |
<div data-dojo-type="dijit/Menu" id="submenu2"> |
| 428 |
<div data-dojo-type="dijit/MenuItem" data-dojo-props="onClick: function(){ alert('Submenu 1!') }">Submenu |
| 429 |
Item One |
| 430 |
</div> |
| 431 |
<div data-dojo-type="dijit/MenuItem" data-dojo-props="onClick: function(){ alert('Submenu 2!') }">Submenu |
| 432 |
Item Two |
| 433 |
</div> |
| 434 |
<div data-dojo-type="dijit/PopupMenuItem"> |
| 435 |
<span>Deeper Submenu</span> |
| 436 |
|
| 437 |
<div data-dojo-type="dijit/Menu" id="submenu4"> |
| 438 |
<div data-dojo-type="dijit/MenuItem" data-dojo-props="onClick:function(){alert('Sub-submenu 1!')}"> |
| 439 |
Sub-sub-menu Item One |
| 440 |
</div> |
| 441 |
<div data-dojo-type="dijit/MenuItem" data-dojo-props="onClick:function(){alert('Sub-submenu 2!')}"> |
| 442 |
Sub-sub-menu Item Two |
| 443 |
</div> |
| 444 |
</div> |
| 445 |
</div> |
| 446 |
</div> |
| 447 |
</div> |
| 448 |
<div data-dojo-type="dijit/PopupMenuItem" data-dojo-props="disabled:true"> |
| 449 |
<span>Disabled Submenu</span> |
| 450 |
|
| 451 |
<div data-dojo-type="dijit/Menu" id="submenu3" style="display: none;"> |
| 452 |
<div data-dojo-type="dijit/MenuItem" data-dojo-props="onClick:function(){alert('Submenu 1!')}">Submenu Item |
| 453 |
One |
| 454 |
</div> |
| 455 |
<div data-dojo-type="dijit/MenuItem" data-dojo-props="onClick:function(){alert('Submenu 2!')}">Submenu Item |
| 456 |
Two |
| 457 |
</div> |
| 458 |
</div> |
| 459 |
</div> |
| 460 |
<div data-dojo-type="dijit/PopupMenuItem"> |
| 461 |
<span>Different popup</span> |
| 462 |
|
| 463 |
<div data-dojo-type="dijit/ColorPalette"></div> |
| 464 |
</div> |
| 465 |
<div data-dojo-type="dijit/PopupMenuItem"> |
| 466 |
<span>Different popup</span> |
| 467 |
|
| 468 |
<div data-dojo-type="dijit/Calendar"></div> |
| 469 |
</div> |
| 470 |
</div> |
| 471 |
|
| 472 |
|
| 473 |
<div id="main" data-dojo-type="dijit/layout/BorderContainer" data-dojo-props="liveSplitters:false, design:'sidebar'"> |
| 474 |
|
| 475 |
<div id="header" data-dojo-type="dijit/MenuBar" data-dojo-props="region:'top'"> |
| 476 |
<div data-dojo-type="dijit/PopupMenuBarItem" id="file"> |
| 477 |
<span>File</span> |
| 478 |
|
| 479 |
<div data-dojo-type="dijit/Menu" id="fileMenu"> |
| 480 |
<div data-dojo-type="dijit/MenuItem" id="globals" data-dojo-props="onClick: logStrayGlobals">Log globals |
| 481 |
</div> |
| 482 |
<div data-dojo-type="dijit/MenuItem" id="widgets" data-dojo-props="onClick: logWidgets">Log widgets</div> |
| 483 |
<div data-dojo-type="dijit/MenuItem" id="destroy" |
| 484 |
data-dojo-props="iconClass:'dijitIconDelete', onClick:tearDown">Destroy All |
| 485 |
</div> |
| 486 |
</div> |
| 487 |
</div> |
| 488 |
<div data-dojo-type="dijit/PopupMenuBarItem" id="edit"> |
| 489 |
<span>Edit</span> |
| 490 |
|
| 491 |
<div data-dojo-type="dijit/Menu" id="editMenu"> |
| 492 |
<div data-dojo-type="dijit/MenuItem" id="cut" data-dojo-props=" |
| 493 |
iconClass:'dijitIconCut', |
| 494 |
onClick:function(){ console.log('not actually cutting anything, just a test!') } |
| 495 |
">Cut |
| 496 |
</div> |
| 497 |
<div data-dojo-type="dijit/MenuItem" id="copy" data-dojo-props=" |
| 498 |
iconClass:'dijitIconCopy', |
| 499 |
onClick: function(){ console.log('not actually copying anything, just a test!') } |
| 500 |
">Copy |
| 501 |
</div> |
| 502 |
<div data-dojo-type="dijit/MenuItem" id="paste" data-dojo-props="iconClass:'dijitIconPaste', |
| 503 |
onClick: function(){ console.log('not actually pasting anything, just a test!') }">Paste |
| 504 |
</div> |
| 505 |
<div data-dojo-type="dijit/MenuSeparator" id="separator"></div> |
| 506 |
<div data-dojo-type="dijit/MenuItem" id="undo" data-dojo-props="iconClass:'dijitIconUndo'">Undo</div> |
| 507 |
</div> |
| 508 |
</div> |
| 509 |
<div data-dojo-type="dijit/PopupMenuBarItem" id="view"> |
| 510 |
<span>View</span> |
| 511 |
|
| 512 |
<div data-dojo-type="dijit/Menu" id="viewMenu"> |
| 513 |
<div data-dojo-type="dijit/MenuItem">Normal</div> |
| 514 |
<div data-dojo-type="dijit/MenuItem">Outline</div> |
| 515 |
<div data-dojo-type="dijit/PopupMenuItem"> |
| 516 |
<span>Zoom</span> |
| 517 |
|
| 518 |
<div data-dojo-type="dijit/Menu" id="zoomMenu"> |
| 519 |
<div data-dojo-type="dijit/RadioMenuItem" data-dojo-props="group:'zoom'">50%</div> |
| 520 |
<div data-dojo-type="dijit/RadioMenuItem" data-dojo-props="group:'zoom'">75%</div> |
| 521 |
<div data-dojo-type="dijit/RadioMenuItem" data-dojo-props="group:'zoom', checked:true">100%</div> |
| 522 |
<div data-dojo-type="dijit/RadioMenuItem" data-dojo-props="group:'zoom'">150%</div> |
| 523 |
<div data-dojo-type="dijit/RadioMenuItem" data-dojo-props="group:'zoom'">200%</div> |
| 524 |
</div> |
| 525 |
</div> |
| 526 |
</div> |
| 527 |
</div> |
| 528 |
<div data-dojo-type="dijit/PopupMenuBarItem" id="themes"> |
| 529 |
<span>Themes</span> |
| 530 |
|
| 531 |
<div data-dojo-type="dijit/Menu" id="themeMenu"></div> |
| 532 |
</div> |
| 533 |
<div data-dojo-type="dijit/PopupMenuBarItem" id="dialogs"> |
| 534 |
<span>Dialogs</span> |
| 535 |
|
| 536 |
<div data-dojo-type="dijit/Menu" id="dialogMenu"> |
| 537 |
<div data-dojo-type="dijit/MenuItem" data-dojo-props="onClick: showDialog">slow loading</div> |
| 538 |
<div data-dojo-type="dijit/MenuItem" data-dojo-props="onClick: showDialogAb">action bar</div> |
| 539 |
</div> |
| 540 |
</div> |
| 541 |
<div data-dojo-type="dijit/PopupMenuBarItem" id="inputPadding"> |
| 542 |
<span>TextBox Padding</span> |
| 543 |
|
| 544 |
<div data-dojo-type="dijit/Menu" id="inputPaddingMenu"> |
| 545 |
<div data-dojo-type="dijit/RadioMenuItem" data-dojo-props="group:'padding', onClick:setTextBoxPadding, checked:true">theme |
| 546 |
default |
| 547 |
</div> |
| 548 |
<div data-dojo-type="dijit/RadioMenuItem" data-dojo-props="group:'padding', onClick:setTextBoxPadding">0px</div> |
| 549 |
<div data-dojo-type="dijit/RadioMenuItem" data-dojo-props="group:'padding', onClick:setTextBoxPadding">1px</div> |
| 550 |
<div data-dojo-type="dijit/RadioMenuItem" data-dojo-props="group:'padding', onClick:setTextBoxPadding">2px</div> |
| 551 |
<div data-dojo-type="dijit/RadioMenuItem" data-dojo-props="group:'padding', onClick:setTextBoxPadding">3px</div> |
| 552 |
<div data-dojo-type="dijit/RadioMenuItem" data-dojo-props="group:'padding', onClick:setTextBoxPadding">4px</div> |
| 553 |
<div data-dojo-type="dijit/RadioMenuItem" data-dojo-props="group:'padding', onClick:setTextBoxPadding">5px</div> |
| 554 |
</div> |
| 555 |
</div> |
| 556 |
<div data-dojo-type="dijit/PopupMenuBarItem" id="help"> |
| 557 |
<span>Help</span> |
| 558 |
|
| 559 |
<div data-dojo-type="dijit/Menu" id="helpMenu"> |
| 560 |
<div data-dojo-type="dijit/MenuItem">Help Topics</div> |
| 561 |
<div data-dojo-type="dijit/MenuItem">About Dijit</div> |
| 562 |
</div> |
| 563 |
</div> |
| 564 |
<div data-dojo-type="dijit/PopupMenuBarItem" data-dojo-props="disabled:true"> |
| 565 |
<span>Disabled</span> |
| 566 |
|
| 567 |
<div data-dojo-type="dijit/Menu"> |
| 568 |
<div data-dojo-type="dijit/MenuItem">You should not see this</div> |
| 569 |
</div> |
| 570 |
</div> |
| 571 |
</div> |
| 572 |
|
| 573 |
<div data-dojo-type="dijit/layout/AccordionContainer" data-dojo-props="region:'leading', splitter:true, minSize:20" |
| 574 |
style="width: 300px;" id="leftAccordion"> |
| 575 |
|
| 576 |
<div data-dojo-type="dijit/layout/ContentPane" data-dojo-props='title:"Popups and Alerts"'> |
| 577 |
<div style="padding:8px"> |
| 578 |
<h2>Tooltips</h2> |
| 579 |
<ul> |
| 580 |
<li> |
| 581 |
<span id="ttRich"><b>rich</b> <i>text</i> tooltip</span> |
| 582 |
<span data-dojo-type="dijit/Tooltip" data-dojo-props="connectId:'ttRich'" style="display:none;"> |
| 583 |
Embedded <b>bold</b> <i>RICH</i> text <span |
| 584 |
style="color:#309; font-size:x-large;">weirdness!</span> |
| 585 |
</span> |
| 586 |
</li> |
| 587 |
|
| 588 |
<li><a id="ttOne" href='#bogus'>anchor tooltip</a> |
| 589 |
<span data-dojo-type="dijit/Tooltip" data-dojo-props='connectId:"ttOne"' style="display:none;">tooltip on anchor</span> |
| 590 |
</li> |
| 591 |
</ul> |
| 592 |
|
| 593 |
<table style="width: 100%;"> |
| 594 |
<tr> |
| 595 |
<td></td> |
| 596 |
<td> |
| 597 |
<div id="ttBelow">tooltip below</div> |
| 598 |
<div data-dojo-type="dijit/Tooltip" |
| 599 |
data-dojo-props="connectId:'ttBelow', position:['below-centered']" |
| 600 |
style="display:none; width: 100px;">I'm <i>below</i>! |
| 601 |
</div> |
| 602 |
</td> |
| 603 |
<td></td> |
| 604 |
</tr> |
| 605 |
<tr> |
| 606 |
<td> |
| 607 |
<div id="ttRight">tooltip after</div> |
| 608 |
<div data-dojo-type="dijit/Tooltip" |
| 609 |
data-dojo-props="connectId:'ttRight', position:['after-centered']" style="display:none;"> |
| 610 |
I'm on the <i>right</i>!<br>(or left on RTL systems) |
| 611 |
</div> |
| 612 |
</td> |
| 613 |
<td></td> |
| 614 |
<td> |
| 615 |
<div id="ttLeft">tooltip before</div> |
| 616 |
<div data-dojo-type="dijit/Tooltip" |
| 617 |
data-dojo-props="connectId:'ttLeft', position:['before-centered','after-centered']" |
| 618 |
style="display:none;">I'm on the <i>left</i>!<br>(or right on RTL systems) |
| 619 |
</div> |
| 620 |
</td> |
| 621 |
</tr> |
| 622 |
<tr> |
| 623 |
<td></td> |
| 624 |
<td> |
| 625 |
<div id="ttAbove">tooltip above</div> |
| 626 |
<div data-dojo-type="dijit/Tooltip" |
| 627 |
data-dojo-props="connectId:'ttAbove', position:['above-centered']" style="display:none;"> |
| 628 |
I'm <i>above</i>! |
| 629 |
</div> |
| 630 |
</td> |
| 631 |
<td></td> |
| 632 |
</tr> |
| 633 |
</table> |
| 634 |
|
| 635 |
<hr class="spacer"> |
| 636 |
|
| 637 |
<h2>Dialogs</h2> |
| 638 |
<ul> |
| 639 |
<li><a href="#" onclick="registry.byId('dialog1').show()">slow loading modal dialog</a></li> |
| 640 |
<li><a href="#" onclick="registry.byId('dialogAB').show()">modal dialog w/action bar</a></li> |
| 641 |
</ul> |
| 642 |
|
| 643 |
<div data-dojo-type="dijit/form/DropDownButton"> |
| 644 |
<span>Show Tooltip Dialog</span> |
| 645 |
|
| 646 |
<div data-dojo-type="dijit/ConfirmTooltipDialog" id="tooltipDlg" data-dojo-props=' |
| 647 |
title:"Enter Login information", |
| 648 |
execute: function(){ alert("submitted w/args:\n" + dojo.toJson(arguments[0], true)); } |
| 649 |
'> |
| 650 |
<table> |
| 651 |
<tr> |
| 652 |
<td><label for="user">User:</label></td> |
| 653 |
<td><input data-dojo-type="dijit/form/TextBox" type="text" id="user" name="user"></td> |
| 654 |
</tr> |
| 655 |
<tr> |
| 656 |
<td><label for="pwd">Password:</label></td> |
| 657 |
<td><input data-dojo-type="dijit/form/TextBox" type="password" id="pwd" name="pwd"></td> |
| 658 |
</tr> |
| 659 |
</table> |
| 660 |
</div> |
| 661 |
</div> |
| 662 |
</div> |
| 663 |
</div> |
| 664 |
|
| 665 |
<div data-dojo-type="dijit/layout/ContentPane" data-dojo-props='title:"Tree"'> |
| 666 |
|
| 667 |
<div data-dojo-type="dijit/Tree" |
| 668 |
data-dojo-props="model: continentModel, query:{ type:'continent'}, label:'Continents', openOnClick:true" |
| 669 |
></div> |
| 670 |
</div> |
| 671 |
|
| 672 |
<div data-dojo-type="dijit/layout/ContentPane" data-dojo-props="title:'Rootless Tree'"> |
| 673 |
<div id="rootlessTree" data-dojo-type="dijit/Tree" data-dojo-props=" |
| 674 |
model:continentModel, |
| 675 |
query:{ type:'continent' }, |
| 676 |
showRoot: false, |
| 677 |
openOnClick:true |
| 678 |
"></div> |
| 679 |
</div> |
| 680 |
|
| 681 |
<div data-dojo-type="dijit/layout/ContentPane" data-dojo-props='selected:true, title:"Calendar"'> |
| 682 |
|
| 683 |
<input id="calendar1" data-dojo-type="dijit/Calendar"> |
| 684 |
</div> |
| 685 |
|
| 686 |
<div data-dojo-type="dijit/layout/ContentPane" data-dojo-props='title:"Color Picker"'> |
| 687 |
<p> |
| 688 |
Selecting a color will change the background color of the page. |
| 689 |
Use this to test how tooltips and drop downs appear with different backgrounds. |
| 690 |
</p> |
| 691 |
|
| 692 |
<h2 class="testHeader">3x4</h2> |
| 693 |
<script> |
| 694 |
function setBackground(color){ |
| 695 |
dojo.query('.dijitAccordionBody').style('background', color); |
| 696 |
dojo.query('.dijitTabPaneWrapper').style('background', color); |
| 697 |
} |
| 698 |
</script> |
| 699 |
<div data-dojo-type="dijit/ColorPalette" data-dojo-props="palette:'3x4', onChange:setBackground"></div> |
| 700 |
<h2 class="testHeader">7x10</h2> |
| 701 |
|
| 702 |
<div data-dojo-type="dijit/ColorPalette" data-dojo-props="onChange:setBackground"></div> |
| 703 |
</div> |
| 704 |
</div> |
| 705 |
|
| 706 |
|
| 707 |
|
| 708 |
<div data-dojo-type="dijit/layout/TabContainer" data-dojo-props="region:'center', tabStrip:true" id="topTabs"> |
| 709 |
|
| 710 |
<div id="basicFormTab" data-dojo-type="dijit/layout/ContentPane" |
| 711 |
data-dojo-props="title:'Basic Form Widgets', style:'padding:10px;display:none;'"> |
| 712 |
|
| 713 |
<h2>Buttons</h2> |
| 714 |
|
| 715 |
<p>Buttons can do an action, display a menu, or both:</p> |
| 716 |
|
| 717 |
Enabled: |
| 718 |
|
| 719 |
<button data-dojo-type="dijit/form/Button" |
| 720 |
data-dojo-props="iconClass:'dijitIconTask', onClick:function(){ console.debug('clicked simple') }"> |
| 721 |
Simple |
| 722 |
</button> |
| 723 |
|
| 724 |
<div data-dojo-type="dijit/form/DropDownButton" data-dojo-props="iconClass:'dijitIconEdit'"> |
| 725 |
<span>Drop Down</span> |
| 726 |
|
| 727 |
<div data-dojo-type="dijit/Menu" id="editMenu1" style="display: none;"> |
| 728 |
<div data-dojo-type="dijit/MenuItem" data-dojo-props=" |
| 729 |
iconClass:'dijitIconCut', |
| 730 |
onClick:function(){ console.debug('not actually cutting anything, just a test!') } |
| 731 |
">Cut |
| 732 |
</div> |
| 733 |
|
| 734 |
<div data-dojo-type="dijit/MenuItem" data-dojo-props=" |
| 735 |
iconClass:'dijitIconCopy', |
| 736 |
onClick:function(){ console.debug('not actually copying anyything, just a test!'); } |
| 737 |
">Copy |
| 738 |
</div> |
| 739 |
|
| 740 |
<div data-dojo-type="dijit/MenuItem" data-dojo-props=" |
| 741 |
iconClass:'dijitIconPaste', |
| 742 |
onClick:function(){ console.debug('not actually pasting anyything, just a test!'); } |
| 743 |
">Paste |
| 744 |
</div> |
| 745 |
</div> |
| 746 |
</div> |
| 747 |
|
| 748 |
<div data-dojo-type="dijit/form/ComboButton" |
| 749 |
data-dojo-props='iconClass:"dijitIconSave", optionsTitle:"save options", onClick:function(){ console.log("clicked combo save"); }'> |
| 750 |
<span>Combo</span> |
| 751 |
|
| 752 |
<div data-dojo-type="dijit/Menu" id="saveMenu1" style="display: none;"> |
| 753 |
<div data-dojo-type="dijit/MenuItem" data-dojo-props=" |
| 754 |
iconClass:'dijitIconSave', |
| 755 |
onClick: function(){ console.debug('not actually saving anything, just a test!') } |
| 756 |
">Save |
| 757 |
</div> |
| 758 |
<div data-dojo-type="dijit/MenuItem" data-dojo-props=" |
| 759 |
onClick: function(){ console.debug('not actually saving anything, just a test!') } |
| 760 |
">Save As |
| 761 |
</div> |
| 762 |
</div> |
| 763 |
</div> |
| 764 |
|
| 765 |
<div data-dojo-type="dijit/form/ToggleButton" data-dojo-props=" |
| 766 |
checked:true, |
| 767 |
onChange: function(a){ console.log('toggle button checked=' + a); }, iconClass:'dijitCheckBoxIcon' |
| 768 |
"> Toggle |
| 769 |
</div> |
| 770 |
|
| 771 |
<hr class="spacer"> |
| 772 |
|
| 773 |
Disabled: |
| 774 |
|
| 775 |
<button data-dojo-type="dijit/form/Button" data-dojo-props='iconClass:"dijitIconTask", disabled:true' disabled> |
| 776 |
Simple |
| 777 |
</button> |
| 778 |
|
| 779 |
<div data-dojo-type="dijit/form/DropDownButton" data-dojo-props='iconClass:"dijitIconEdit", disabled:true'> |
| 780 |
<span>Drop Down</span> |
| 781 |
<ul data-dojo-type="dijit/Menu" id="editMenu2" style="display: none;"> |
| 782 |
<li data-dojo-type="dijit/MenuItem" data-dojo-props=" |
| 783 |
iconClass:'dijitIconCut', |
| 784 |
onClick: function(){ console.debug('not actually cutting anything, just a test!') } |
| 785 |
">Cut |
| 786 |
</li> |
| 787 |
|
| 788 |
<li data-dojo-type="dijit/MenuItem" data-dojo-props=" |
| 789 |
iconClass:'dijitIconCopy', |
| 790 |
onClick: function(){ console.debug('not actually copying anything, just a test!') } |
| 791 |
">Copy |
| 792 |
</li> |
| 793 |
|
| 794 |
<li data-dojo-type="dijit/MenuItem" data-dojo-props=" |
| 795 |
iconClass:'dijitIconPaste', |
| 796 |
onClick: function(){ console.debug('not actually pasting anything, just a test!') } |
| 797 |
">Paste |
| 798 |
</li> |
| 799 |
</ul> |
| 800 |
</div> |
| 801 |
|
| 802 |
<div data-dojo-type="dijit/form/ComboButton" |
| 803 |
data-dojo-props="iconClass:'dijitIconSave', optionsTitle:'save options', disabled:true"> |
| 804 |
<span>Combo</span> |
| 805 |
|
| 806 |
<div data-dojo-type="dijit/Menu" id="saveMenu2" style="display: none;"> |
| 807 |
<div data-dojo-type="dijit/MenuItem" data-dojo-props=" |
| 808 |
iconCLass:'dijitIconSave', |
| 809 |
onClick:function(){ console.log('not actually saving anything, just a test!' ); } |
| 810 |
">Save |
| 811 |
</div> |
| 812 |
<div data-dojo-type="dijit/MenuItem" |
| 813 |
onClick="console.debug('not actually saving anything, just a test!')"> |
| 814 |
Save As |
| 815 |
</div> |
| 816 |
</div> |
| 817 |
</div> |
| 818 |
|
| 819 |
<button data-dojo-type="dijit/form/ToggleButton" |
| 820 |
data-dojo-props="checked:true, disabled:true, iconClass:'dijitCheckBoxIcon'"> |
| 821 |
Toggle |
| 822 |
</button> |
| 823 |
|
| 824 |
<hr class="spacer"> |
| 825 |
|
| 826 |
<h2>CheckBox</h2> |
| 827 |
<fieldset> |
| 828 |
<input id="check1" type="checkBox" data-dojo-type="dijit/form/CheckBox"> |
| 829 |
<label for="check1">unchecked</label> |
| 830 |
|
| 831 |
<input id="check2" type="checkBox" data-dojo-type="dijit/form/CheckBox" data-dojo-props="checked:true" |
| 832 |
checked="checked"> |
| 833 |
<label for="check2">checked</label> |
| 834 |
|
| 835 |
<input id="check3" type="checkBox" data-dojo-type="dijit/form/CheckBox" data-dojo-props='disabled:true' |
| 836 |
disabled> |
| 837 |
<label for="check3">disabled</label> |
| 838 |
|
| 839 |
<input id="check4" type="checkBox" data-dojo-type="dijit/form/CheckBox" |
| 840 |
data-dojo-props='disabled:true, checked:true' checked="checked" disabled> |
| 841 |
<label for="check4">disabled and checked</label> |
| 842 |
</fieldset> |
| 843 |
|
| 844 |
<h2>Radio Buttons</h2> |
| 845 |
<fieldset> |
| 846 |
<input type="radio" name="g1" id="g1rb1" value="news" data-dojo-type="dijit/form/RadioButton"> |
| 847 |
<label for="g1rb1">news</label> |
| 848 |
<input type="radio" name="g1" id="g1rb2" value="talk" data-dojo-type="dijit/form/RadioButton" |
| 849 |
data-dojo-props='checked:true' checked> |
| 850 |
<label for="g1rb2">talk</label> |
| 851 |
<input type="radio" name="g1" id="g1rb3" value="weather" data-dojo-type="dijit/form/RadioButton" |
| 852 |
data-dojo-props='disabled:true' disabled> |
| 853 |
<label for="g1rb3">weather <span dir="ltr">(disabled)</span></label> |
| 854 |
</fieldset> |
| 855 |
</div> |
| 856 |
|
| 857 |
|
| 858 |
<div id="textboxTab" data-dojo-type="dijit/layout/ContentPane" |
| 859 |
data-dojo-props='title:"Text Input Widgets", style:"padding:10px;display:none;"'> |
| 860 |
|
| 861 |
<h2>dijit/form/DateTextBox</h2> |
| 862 |
<label for="date1">Enabled w/placeHolder:</label> |
| 863 |
<input id="date1" name="date1" type="text" data-dojo-type="dijit/form/DateTextBox" |
| 864 |
data-dojo-props="placeHolder:'Birthday'"> |
| 865 |
<label for="date2">Disabled w/placeHolder:</label> |
| 866 |
<input id="date2" name="date2" type="text" data-dojo-type="dijit/form/DateTextBox" |
| 867 |
data-dojo-props='placeHolder:"Birthday", disabled:true'> |
| 868 |
<label for="date2">Disabled w/value:</label> |
| 869 |
<input id="date3" name="date3" type="text" data-dojo-type="dijit/form/DateTextBox" |
| 870 |
data-dojo-props='value:"2008-12-25", disabled:true'> |
| 871 |
|
| 872 |
<h2>dijit/form/TimeTextBox</h2> |
| 873 |
<label for="time1">Enabled:</label> |
| 874 |
<input id="time1" name="time1" type="text" data-dojo-type="dijit/form/TimeTextBox" value="T17:45:00"> |
| 875 |
<label for="time2">Disabled:</label> |
| 876 |
<input id="time2" name="time2" type="text" data-dojo-type="dijit/form/TimeTextBox" value="T17:45:00" |
| 877 |
data-dojo-props='disabled:true' disabled> |
| 878 |
|
| 879 |
<h2>dijit/form/CurrencyTextBox</h2> |
| 880 |
<label for="currency1">Enabled:</label> |
| 881 |
<input id="currency1" type="text" name="income1" value="54775.53" data-dojo-type="dijit/form/CurrencyTextBox" |
| 882 |
data-dojo-props=" |
| 883 |
required:true, constraints:{ fractional:true }, currency:'USD', |
| 884 |
value:54775.53, |
| 885 |
invalidMessage:'Invalid amount. Include dollar sign, commas, and cents. Cents are mandatory.' |
| 886 |
"> |
| 887 |
<label for="currency2">Disabled:</label> |
| 888 |
<input id="currency2" type="text" name="income1" value="54775.53" |
| 889 |
data-dojo-type="dijit/form/CurrencyTextBox" data-dojo-props="required:true, constraints:{ fractional:true }, |
| 890 |
currency:'USD', invalidMessage:'Invalid amount. Include dollar sign, commas, and cents. Cents are mandatory.', |
| 891 |
disabled:true |
| 892 |
"> |
| 893 |
|
| 894 |
<hr class="spacer"> |
| 895 |
|
| 896 |
<h2>dijit/form/NumberSpinner max=100</h2> |
| 897 |
<label for="spinner1">Enabled: </label> |
| 898 |
<input data-dojo-type="dijit/form/NumberSpinner" data-dojo-props='constraints:{max:100,places:0}, value:10' |
| 899 |
id="spinner1"> |
| 900 |
<label for="spinner2">Disabled: </label> |
| 901 |
<input data-dojo-type="dijit/form/NumberSpinner" |
| 902 |
data-dojo-props='constraints:{max:100,places:0}, value:10, disabled:true' id="spinner2"> |
| 903 |
|
| 904 |
</div> |
| 905 |
|
| 906 |
<div id="selectTab" data-dojo-type="dijit/layout/ContentPane" |
| 907 |
data-dojo-props="title:'Select Widgets', style:'padding:10px;display:none;'"> |
| 908 |
|
| 909 |
<h2>dijit/form/Select</h2> |
| 910 |
|
| 911 |
<span id="l_selectEnabled">Enabled:</span> |
| 912 |
<div id="selectEnabled" data-dojo-type="dijit/form/Select" value="AK" aria-labelledby="l_selectEnabled"> |
| 913 |
<span data-dojo-value="AL"><b>Alabama</b></span> |
| 914 |
<span data-dojo-value="AK"><span style="color:red">A</span><span style="color:orange">l</span><span |
| 915 |
style="color:yellow">a</span><span style="color:green">s</span><span style="color:blue">k</span><span |
| 916 |
style="color:purple">a</span></span> |
| 917 |
<span data-dojo-value="AZ"><i>Arizona</i></span> |
| 918 |
<span data-dojo-value="AR"><span class="ark">Arkansas</span></span> |
| 919 |
<span data-dojo-value="CA"><span style="font-size:25%">C</span><span style="font-size:50%">a</span><span |
| 920 |
style="font-size:75%">l</span><span style="font-size:90%">i</span><span |
| 921 |
style="font-size:100%">f</span><span style="font-size:125%">o</span><span |
| 922 |
style="font-size:133%">r</span><span style="font-size:150%">n</span><span |
| 923 |
style="font-size:175%">i</span><span style="font-size:200%">a</span></span> |
| 924 |
<span data-dojo-value="NM">New<br> Mexico</span> |
| 925 |
</div> |
| 926 |
|
| 927 |
<span id="l_selectDisabled">Disabled:</span> |
| 928 |
<div id="selectDisabled" data-dojo-type="dijit/form/Select" value="AK" disabled aria-labelledby="l_selectDisabled"> |
| 929 |
<span data-dojo-value="AL"><b>Alabama</b></span> |
| 930 |
<span data-dojo-value="AK"><span style="color:red">A</span><span style="color:orange">l</span><span |
| 931 |
style="color:yellow">a</span><span style="color:green">s</span><span style="color:blue">k</span><span |
| 932 |
style="color:purple">a</span></span> |
| 933 |
<span data-dojo-value="AZ"><i>Arizona</i></span> |
| 934 |
<span data-dojo-value="AR"><span class="ark">Arkansas</span></span> |
| 935 |
<span data-dojo-value="CA"><span style="font-size:25%">C</span><span style="font-size:50%">a</span><span |
| 936 |
style="font-size:75%">l</span><span style="font-size:90%">i</span><span |
| 937 |
style="font-size:100%">f</span><span style="font-size:125%">o</span><span |
| 938 |
style="font-size:133%">r</span><span style="font-size:150%">n</span><span |
| 939 |
style="font-size:175%">i</span><span style="font-size:200%">a</span></span> |
| 940 |
<span data-dojo-value="NM">New<br> Mexico</span> |
| 941 |
</div> |
| 942 |
|
| 943 |
<hr class="spacer"> |
| 944 |
|
| 945 |
<h2>dijit/form/FilteringSelect</h2> |
| 946 |
<label for="filteringSelect">Enabled w/placeHolder: </label> |
| 947 |
<input id="filteringSelect" data-dojo-type="dijit/form/FilteringSelect" data-dojo-props=" |
| 948 |
placeHolder:'place', |
| 949 |
store:continentStore, |
| 950 |
searchAttr:'name', |
| 951 |
name:'state2' |
| 952 |
"> |
| 953 |
|
| 954 |
<label for="filteringSelect2">Disabled w/placeHolder: </label> |
| 955 |
<input id="filteringSelect2" data-dojo-type="dijit/form/FilteringSelect" data-dojo-props=" |
| 956 |
disabled:true, store:continentStore, name:'state2', searchAttr:'name' |
| 957 |
"> |
| 958 |
|
| 959 |
<label for="filteringSelect3">Disabled w/value: </label> |
| 960 |
<input id="filteringSelect3" data-dojo-type="dijit/form/FilteringSelect" data-dojo-props=" |
| 961 |
store: continentStore, searchAttr:'name', disabled:true, value:'CA' |
| 962 |
"> |
| 963 |
|
| 964 |
</div> |
| 965 |
|
| 966 |
<div id="textareaTab" data-dojo-type="dijit/layout/ContentPane" |
| 967 |
data-dojo-props='title:"Textarea", style:"padding:10px;"'> |
| 968 |
|
| 969 |
|
| 970 |
|
| 971 |
<h2>dijit/form/Textarea</h2> |
| 972 |
|
| 973 |
<p>Enabled:</p> |
| 974 |
<textarea data-dojo-type="dijit/form/Textarea" data-dojo-props='name:"areText"' name="areText">This text area will |
| 975 |
expand and contract as you type ‪text.‬ |
| 976 |
|
| 977 |
Lorem ipsum dolor sit ‪amet,‬ |
| 978 |
consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet |
| 979 |
dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci |
| 980 |
tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo ‪consequat.‬ |
| 981 |
</textarea> |
| 982 |
|
| 983 |
<br> |
| 984 |
|
| 985 |
<p>Disabled:</p> |
| 986 |
<textarea data-dojo-type="dijit/form/Textarea" data-dojo-props="disabled: true">This text |
| 987 |
area is disabled and you shouldn't be able to type in ‪it.‬ |
| 988 |
</textarea> |
| 989 |
|
| 990 |
|
| 991 |
<h2>dijit/form/SimpleTextarea</h2> |
| 992 |
|
| 993 |
<p></p> |
| 994 |
|
| 995 |
<p>Enabled:</p> |
| 996 |
<textarea data-dojo-type="dijit/form/SimpleTextarea">This text area has a constant height and displays a scrollbar |
| 997 |
when ‪necessary.‬ |
| 998 |
|
| 999 |
Lorem ipsum dolor sit ‪amet,‬ |
| 1000 |
consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet |
| 1001 |
dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci |
| 1002 |
tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis |
| 1003 |
autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie ‪consequat,‬ |
| 1004 |
vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio |
| 1005 |
dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait |
| 1006 |
nulla ‪facilisi.‬ |
| 1007 |
</textarea> |
| 1008 |
|
| 1009 |
<p>Disabled:</p> |
| 1010 |
<textarea data-dojo-type="dijit/form/SimpleTextarea" data-dojo-props="disabled: true">Lorem ipsum dolor sit ‪amet,‬ |
| 1011 |
consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet |
| 1012 |
dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci |
| 1013 |
tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis |
| 1014 |
autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie ‪consequat,‬ |
| 1015 |
vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio |
| 1016 |
dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait |
| 1017 |
nulla ‪facilisi.‬ |
| 1018 |
</textarea> |
| 1019 |
</div> |
| 1020 |
|
| 1021 |
|
| 1022 |
<div id="editorTab" data-dojo-type="dijit/layout/ContentPane" data-dojo-props='title:"Editor", style:"padding:10px;"'> |
| 1023 |
<p>Enabled:</p> |
| 1024 |
|
| 1025 |
|
| 1026 |
|
| 1027 |
|
| 1028 |
|
| 1029 |
|
| 1030 |
<div data-dojo-type="dijit/Editor" |
| 1031 |
data-dojo-props="height:175, extraPlugins:['|', 'createLink', 'fontName'], styleSheets:'../themes/claro/document.css'"> |
| 1032 |
<ul> |
| 1033 |
<li>Lorem <a href="http://dojotoolkit.org">and a link</a>, what do you think?</li> |
| 1034 |
<li>This is the Editor with a Toolbar attached.</li> |
| 1035 |
</ul> |
| 1036 |
</div> |
| 1037 |
<p>Disabled:</p> |
| 1038 |
|
| 1039 |
<div data-dojo-type="dijit/Editor" |
| 1040 |
data-dojo-props="height:175, extraPlugins:['|', 'createLink', 'fontName'], styleSheets:'../themes/claro/document.css', disabled:true"> |
| 1041 |
<ul> |
| 1042 |
<li>Lorem <a href="http://dojotoolkit.org">and a link</a>, what do you think?</li> |
| 1043 |
<li>This is the Editor with a Toolbar attached.</li> |
| 1044 |
</ul> |
| 1045 |
</div> |
| 1046 |
</div> |
| 1047 |
|
| 1048 |
|
| 1049 |
|
| 1050 |
<div data-dojo-type="dijit/layout/ContentPane" data-dojo-props="title:'Sliders', style:'padding:10px;display:none;'"> |
| 1051 |
|
| 1052 |
|
| 1053 |
|
| 1054 |
<h2>Enabled</h2> |
| 1055 |
|
| 1056 |
<div style="float:right;"> |
| 1057 |
<div id='slider2' data-dojo-type="dijit/form/VerticalSlider" data-dojo-props=" |
| 1058 |
onChange: function(a){ dom.byId('slider2input').value = a; }, |
| 1059 |
value:10, maximum:100, minimum:0, discreetValues:11, style:'height:176px; clear:both' |
| 1060 |
"> |
| 1061 |
<ol data-dojo-type="dijit/form/VerticalRuleLabels" |
| 1062 |
data-dojo-props="container:'leftDecoration', style:'width:2em;', labelStyle:'right:0px;'"> |
| 1063 |
<li>0 |
| 1064 |
<li>100 |
| 1065 |
</ol> |
| 1066 |
|
| 1067 |
<div data-dojo-type="dijit/form/VerticalRule" |
| 1068 |
data-dojo-props="container:'leftDecoration', style:'width:5px;', count:11"></div> |
| 1069 |
<div data-dojo-type="dijit/form/VerticalRule" |
| 1070 |
data-dojo-props="container:'rightDecoration', style:'width:5px;', count:11"></div> |
| 1071 |
<ol data-dojo-type="dijit/form/VerticalRuleLabels" |
| 1072 |
data-dojo-props="container:'rightDecoration', style:'width:2em;', maximum:100, count:6, numericMargin:1, constraints:{ pattern:'#' }"></ol> |
| 1073 |
</div> |
| 1074 |
<br> Slider2 Value:<input disabled id="slider2input" size="3" value="10" autocomplete="off"> |
| 1075 |
</div> |
| 1076 |
|
| 1077 |
<div id="horizontal1" data-dojo-type="dijit/form/HorizontalSlider" data-dojo-props=" |
| 1078 |
value:10, maximum:100, minimum:0, showButtons:false, intermediateChanges:true, style:'width:50%; height:20px', |
| 1079 |
onChange: function(a){ dom.byId('slider1input').value = dojo.number.format(a / 100, { places:1, pattern:'#%' }) } |
| 1080 |
"> |
| 1081 |
<ol data-dojo-type="dijit/form/HorizontalRuleLabels" |
| 1082 |
data-dojo-props='container:"topDecoration", style:"height:1.2em;font-size:75%;", numericMargin:1, count:6'></ol> |
| 1083 |
<div data-dojo-type="dijit/form/HorizontalRule" |
| 1084 |
data-dojo-props='container:"topDecoration", count:11, style:"height:5px;"'></div> |
| 1085 |
<div data-dojo-type="dijit/form/HorizontalRule" |
| 1086 |
data-dojo-props='container:"bottomDecoration", count:5, style:"height:5px;"'></div> |
| 1087 |
<ol data-dojo-type="dijit/form/HorizontalRuleLabels" |
| 1088 |
data-dojo-props='container:"bottomDecoration", style:"height:1em;font-size:75%;"'> |
| 1089 |
<li>lowest |
| 1090 |
<li>normal |
| 1091 |
<li>highest |
| 1092 |
</ol> |
| 1093 |
</div> |
| 1094 |
<br>Value: <input disabled id="slider1input" size="5" value="10.0%" autocomplete="off"> |
| 1095 |
|
| 1096 |
<div id="horizontal2" data-dojo-type="dijit/form/HorizontalSlider" data-dojo-props=" |
| 1097 |
minimum:1, value:2, maximum:3, discreteValues:3, showButtons:false, intermediateChanges:true, |
| 1098 |
style:'width:300px; height:40px' |
| 1099 |
"> |
| 1100 |
<div data-dojo-type="dijit/form/HorizontalRule" |
| 1101 |
data-dojo-props='container:"bottomDecoration", count:3, style:"height:5px;"'></div> |
| 1102 |
<ol data-dojo-type="dijit/form/HorizontalRuleLabels" |
| 1103 |
data-dojo-props='container:"bottomDecoration", style:"height:1em;font-size:75%;"'> |
| 1104 |
<li><img width=10 height=10 src="../tests/images/note.gif"><br><span style="font-size: small">small</span> |
| 1105 |
<li><img width=15 height=15 src="../tests/images/note.gif"><br><span style="font-size: medium">medium</span> |
| 1106 |
<li><img width=20 height=20 src="../tests/images/note.gif"><br><span style="font-size: large">large</span> |
| 1107 |
</ol> |
| 1108 |
</div> |
| 1109 |
|
| 1110 |
<h2 style="clear:both">Disabled</h2> |
| 1111 |
|
| 1112 |
<div style="float:right;"> |
| 1113 |
<div data-dojo-type="dijit/form/VerticalSlider" data-dojo-props=" |
| 1114 |
value:10, maximum:100, minimum:0, discreteValues:11, |
| 1115 |
style:'height:175px; clear:both', disabled:true |
| 1116 |
"> |
| 1117 |
<ol data-dojo-type="dijit/form/VerticalRuleLabels" |
| 1118 |
data-dojo-props='container:"leftDecoration", style:"width:2em;", labelStyle:"right:0px;"'> |
| 1119 |
<li>0 |
| 1120 |
<li>100 |
| 1121 |
</ol> |
| 1122 |
|
| 1123 |
<div data-dojo-type="dijit/form/VerticalRule" |
| 1124 |
data-dojo-props='container:"leftDecoration", count:11, style:"width:5px;"'></div> |
| 1125 |
<div data-dojo-type="dijit/form/VerticalRule" |
| 1126 |
data-dojo-props='container:"rightDecoration", count:11, style:"width:5px;"'></div> |
| 1127 |
<ol data-dojo-type="dijit/form/VerticalRuleLabels" |
| 1128 |
data-dojo-props='container:"rightDecoration", style:"width:2em;", maximum:100, count:6, numericMargin:1, constraints:{ pattern:"#"}'></ol> |
| 1129 |
</div> |
| 1130 |
</div> |
| 1131 |
|
| 1132 |
<div data-dojo-type="dijit/form/HorizontalSlider" id="hs-1width" data-dojo-props=" |
| 1133 |
value:10, maximum:100, minimum:0, showButtons:false, intermediateChanges:true, disabled:true |
| 1134 |
"> |
| 1135 |
<ol data-dojo-type="dijit/form/HorizontalRuleLabels" |
| 1136 |
data-dojo-props='container:"topDecoration", style:"height:1.2em;font-size:75%;", numericMargin:1, count:6'></ol> |
| 1137 |
<div data-dojo-type="dijit/form/HorizontalRule" |
| 1138 |
data-dojo-props='container:"topDecoration", count:11, style:"height:5px;"'></div> |
| 1139 |
<div data-dojo-type="dijit/form/HorizontalRule" |
| 1140 |
data-dojo-props='container:"bottomDecoration", count:5, style:"height:5px;"'></div> |
| 1141 |
<ol data-dojo-type="dijit/form/HorizontalRuleLabels" |
| 1142 |
data-dojo-props='container:"bottomDecoration", style:"height:1em;font-size:75%;"'> |
| 1143 |
<li>lowest |
| 1144 |
<li>normal |
| 1145 |
<li>highest |
| 1146 |
</ol> |
| 1147 |
</div> |
| 1148 |
|
| 1149 |
<div data-dojo-type="dijit/form/HorizontalSlider" data-dojo-props=" |
| 1150 |
minimum:1, value:2, maximum:3, discreteValues:3, showButtons:false, intermediateChanges:true, |
| 1151 |
style:'width:300px; height:40px', disabled:true |
| 1152 |
"> |
| 1153 |
<div data-dojo-type="dijit/form/HorizontalRule" |
| 1154 |
data-dojo-props='container:"bottomDecoration", count:3, style:"height:5px;"'></div> |
| 1155 |
<ol data-dojo-type="dijit/form/HorizontalRuleLabels" |
| 1156 |
data-dojo-props='container:"bottomDecoration", style:"height:1em;font-size:75%;"'> |
| 1157 |
<li><img width=10 height=10 src="../tests/images/note.gif"><br><span style="font-size: small">small</span> |
| 1158 |
<li><img width=15 height=15 src="../tests/images/note.gif"><br><span style="font-size: medium">medium</span> |
| 1159 |
<li><img width=20 height=20 src="../tests/images/note.gif"><br><span style="font-size: large">large</span> |
| 1160 |
</ol> |
| 1161 |
</div> |
| 1162 |
</div> |
| 1163 |
|
| 1164 |
<div id="variousTab" data-dojo-type="dijit/layout/ContentPane" |
| 1165 |
data-dojo-props='title:"Various Dijits", style:"padding:10px; display:none;"'> |
| 1166 |
|
| 1167 |
<h2>TitlePane</h2> |
| 1168 |
|
| 1169 |
<div data-dojo-type="dijit/TitlePane" data-dojo-props="title:'my pane', width:275"> |
| 1170 |
<p>This is a title pane. It can be expanded and collapsed.</p> |
| 1171 |
|
| 1172 |
<p>Sed sollicitudin suscipit risus. Nam |
| 1173 |
ullamcorper. Sed nisl lectus, pellentesque nec, |
| 1174 |
malesuada eget, ornare a, libero. Lorem ipsum dolor |
| 1175 |
sit amet, consectetuer adipiscing elit.</p> |
| 1176 |
|
| 1177 |
</div> |
| 1178 |
|
| 1179 |
|
| 1180 |
<hr class="spacer"> |
| 1181 |
|
| 1182 |
<h2>ProgressBar</h2> |
| 1183 |
|
| 1184 |
<div data-dojo-props="maximum:200, value:20" id="setTestBar" data-dojo-type="dijit/ProgressBar"></div> |
| 1185 |
|
| 1186 |
Indeterminate: |
| 1187 |
<div id="indTestBar" data-dojo-props="indeterminate:true" data-dojo-type="dijit/ProgressBar"></div> |
| 1188 |
|
| 1189 |
</div> |
| 1190 |
|
| 1191 |
|
| 1192 |
<div id="InlineEditBoxTab" data-dojo-type="dijit/layout/ContentPane" |
| 1193 |
data-dojo-props='title:"InlineEditBox", style:"padding:10px;"'> |
| 1194 |
|
| 1195 |
<h2 class="testTitle">dijit/InlineEditBox + dijit/form/TextBox on <h3></h2> |
| 1196 |
|
| 1197 |
(HTML before) |
| 1198 |
<h3 id="editable" style="font-size:larger;" data-dojo-type="dijit/InlineEditBox"> |
| 1199 |
Edit me - I trigger the onChange callback |
| 1200 |
</h3> |
| 1201 |
(HTML after) |
| 1202 |
|
| 1203 |
<hr class="spacer"> |
| 1204 |
|
| 1205 |
<h2>dijit/InlineEditBox + dijit/form/Textarea</h2> |
| 1206 |
|
| 1207 |
(HTML before) |
| 1208 |
<p id="areaEditable" data-dojo-type="dijit/InlineEditBox" |
| 1209 |
data-dojo-props='editor: "dijit/form/Textarea", autoSave:false'> |
| 1210 |
I'm one big ‪paragraph.‬ Go ahead and edit ‪me.‬ I dare ‪you.‬ |
| 1211 |
The quick brown fox jumped over the lazy ‪dog.‬ Blah blah blah blah blah blah ‪blah ...‬ |
| 1212 |
</p> |
| 1213 |
(HTML after) |
| 1214 |
|
| 1215 |
<p> |
| 1216 |
These links will |
| 1217 |
<a href="#" onclick="registry.byId('areaEditable').set('disabled', true)">disable</a> / |
| 1218 |
<a href="#" onclick="registry.byId('areaEditable').set('disabled', false)">enable</a> |
| 1219 |
the text area above. |
| 1220 |
</p> |
| 1221 |
|
| 1222 |
<hr class="spacer"> |
| 1223 |
|
| 1224 |
<h2>dijit/form/DateTextBox</h2> |
| 1225 |
|
| 1226 |
(HTML inline before) |
| 1227 |
|
| 1228 |
<span id="backgroundArea" data-dojo-type="dijit/InlineEditBox" |
| 1229 |
data-dojo-props="editor: 'dijit/form/DateTextBox', width:'170px'"></span> |
| 1230 |
(HTML after) |
| 1231 |
<hr class="spacer"> |
| 1232 |
|
| 1233 |
<h2>dijit/form/TimeTextBox</h2> |
| 1234 |
|
| 1235 |
(HTML inline before) |
| 1236 |
|
| 1237 |
<span id="timePicker" data-dojo-type="dijit/InlineEditBox" |
| 1238 |
data-dojo-props='editor: "dijit/form/TimeTextBox", width:"150px"'></span> |
| 1239 |
(HTML after) |
| 1240 |
|
| 1241 |
<hr class="spacer"> |
| 1242 |
|
| 1243 |
|
| 1244 |
<h2>dijit/form/FilteringSelect + Inline + remote data store</h2> |
| 1245 |
(HTML inline before) |
| 1246 |
<span id="backgroundArea2" data-dojo-type="dijit/InlineEditBox" data-dojo-props=' |
| 1247 |
editor: "dijit/form/FilteringSelect", |
| 1248 |
editorParams:{ store: continentStore, autoComplete: true, promptMessage: "Please enter a place"}, |
| 1249 |
width:"300px" |
| 1250 |
'>The earth</span> |
| 1251 |
(HTML after) |
| 1252 |
|
| 1253 |
</div> |
| 1254 |
|
| 1255 |
|
| 1256 |
<div id="dndTab" data-dojo-type="dijit/layout/ContentPane" |
| 1257 |
data-dojo-props='title:"DnD", style:"padding:10px; display:none;"'> |
| 1258 |
<div style="float:left; margin:5px;"> |
| 1259 |
<h3>Vertical Source</h3> |
| 1260 |
|
| 1261 |
<div data-dojo-type="dojo/dnd/Source" style="border:3px solid #ccc; padding: 1em 3em; "> |
| 1262 |
<div class="dojoDndItem">Item <strong>X</strong></div> |
| 1263 |
<div class="dojoDndItem">Item <strong>Y</strong></div> |
| 1264 |
<div class="dojoDndItem">Item <strong>Z</strong></div> |
| 1265 |
</div> |
| 1266 |
</div> |
| 1267 |
<div style="float:left; margin:5px; "> |
| 1268 |
<h3>Horizontal</h3> |
| 1269 |
|
| 1270 |
<div data-dojo-type="dojo/dnd/Source" data-dojo-props="horizontal: true" |
| 1271 |
style="border:3px solid #ccc; padding: 1em 3em; "> |
| 1272 |
<div class="dojoDndItem">Item <strong>1</strong></div> |
| 1273 |
<div class="dojoDndItem">Item <strong>2</strong></div> |
| 1274 |
<div class="dojoDndItem">Item <strong>3</strong></div> |
| 1275 |
</div> |
| 1276 |
</div> |
| 1277 |
</div> |
| 1278 |
|
| 1279 |
|
| 1280 |
<div data-dojo-type="dijit/layout/TabContainer" |
| 1281 |
data-dojo-props="closable:true, title:'Nested TabContainer', nested:true" id="inlined"> |
| 1282 |
<div data-dojo-type="dijit/layout/ContentPane" id="tab1href" |
| 1283 |
href='../tests/layout/tab1.html' title="SubTab 1"></div> |
| 1284 |
<div data-dojo-type="dijit/layout/ContentPane" id="tab2href" |
| 1285 |
href='../tests/layout/tab2.html' title="SubTab 2"></div> |
| 1286 |
<div data-dojo-type="dijit/layout/ContentPane" id="subtab3" title="SubTab 3"> |
| 1287 |
<h1>I am tab 3, inlined.</h1> |
| 1288 |
</div> |
| 1289 |
<div data-dojo-type="dijit/layout/ContentPane" id="subtab4" title="SubTab 4"> |
| 1290 |
<h1>I am tab 4, inlined.</h1> |
| 1291 |
</div> |
| 1292 |
</div> |
| 1293 |
|
| 1294 |
<div id="closableTab" data-dojo-type="dijit/layout/ContentPane" data-dojo-props='title:"Closable", |
| 1295 |
style:"display:none; padding:10px;", closable:true'> |
| 1296 |
This pane is closable, just for the icon ... |
| 1297 |
</div> |
| 1298 |
</div> |
| 1299 |
|
| 1300 |
|
| 1301 |
|
| 1302 |
<div data-dojo-type="dijit/layout/TabContainer" id="bottomTabs" |
| 1303 |
data-dojo-props=" |
| 1304 |
tabPosition:'bottom', selectedchild:'btab1', region:'bottom', |
| 1305 |
splitter:true, tabStrip:true |
| 1306 |
"> |
| 1307 |
|
| 1308 |
<div id="btab1" data-dojo-type="dijit/layout/ContentPane" data-dojo-props='title:"Info", style:" padding:10px; "'> |
| 1309 |
<p>You can explore this single page after applying a Theme |
| 1310 |
for use in creation of your own theme.</p> |
| 1311 |
|
| 1312 |
<p>I am whole slew of Widgets on a page. Jump to <a href="../tests/">dijit tests</a> to |
| 1313 |
test individual components.</p> |
| 1314 |
|
| 1315 |
<p>There is a right-click [context] pop-up menu here, as well.</p> |
| 1316 |
</div> |
| 1317 |
|
| 1318 |
|
| 1319 |
<div id="btab2" data-dojo-type="dijit/layout/ContentPane" data-dojo-props='title:"Bottom 2", closable:true'> |
| 1320 |
<p>I am the last Tab</p> |
| 1321 |
|
| 1322 |
<div id="dialog2" data-dojo-type="dijit/Dialog" data-dojo-props='title:"Encased Dialog", style:"display:none;"'> |
| 1323 |
I am the second dialog. I am |
| 1324 |
parented by the Low Tab Pane #3 |
| 1325 |
</div> |
| 1326 |
</div> |
| 1327 |
|
| 1328 |
|
| 1329 |
</div> |
| 1330 |
|
| 1331 |
|
| 1332 |
</div> |
| 1333 |
|
| 1334 |
|
| 1335 |
|
| 1336 |
<div id="dialog1" data-dojo-type="dijit/ConfirmDialog" style="display:none;" data-dojo-props=" |
| 1337 |
title:'Floating Modal Dialog from href', |
| 1338 |
href:'../tests/layout/getResponse.php?delay=3000&messId=3', |
| 1339 |
style: 'width: 400px;', |
| 1340 |
refreshOnShow:true |
| 1341 |
"></div> |
| 1342 |
<div id="dialogAB" data-dojo-type="dijit/ConfirmDialog" data-dojo-props="title:'Floating Modal Dialog'" style="display:none;"> |
| 1343 |
<table> |
| 1344 |
<tr> |
| 1345 |
<td><label for="name">Name: </label></td> |
| 1346 |
<td><input data-dojo-type="dijit/form/TextBox" type="text" name="name" id="name"></td> |
| 1347 |
</tr> |
| 1348 |
<tr> |
| 1349 |
<td><label for="loc">Location: </label></td> |
| 1350 |
<td><input data-dojo-type="dijit/form/TextBox" type="text" name="loc" id="loc"></td> |
| 1351 |
</tr> |
| 1352 |
<tr> |
| 1353 |
<td><label for="date">Date: </label></td> |
| 1354 |
<td><input data-dojo-type="dijit/form/DateTextBox" type="text" name="date" id="date"></td> |
| 1355 |
</tr> |
| 1356 |
</table> |
| 1357 |
</div> |
| 1358 |
|
| 1359 |
</body> |
| 1360 |
</html> |