Changeset 12858
- Timestamp:
- 03/03/08 17:43:47 (9 months ago)
- Location:
- dijit/trunk
- Files:
-
- 7 modified
-
demos/mail.html (modified) (1 diff)
-
tests/test_Tree.html (modified) (2 diffs)
-
tests/test_Tree_Notification_API_Support.html (modified) (1 diff)
-
tests/tree/test_Tree_v1.html (modified) (1 diff)
-
tests/_inspector.html (modified) (1 diff)
-
themes/themeTester.html (modified) (8 diffs)
-
themes/themeTesterQuirk.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
dijit/trunk/demos/mail.html
r12782 r12858 304 304 <div dojoType="dijit.layout.AccordionPane" title="Folders"> 305 305 <div dojoType="dijit.Tree" id="mytree" store="mailStore" 306 labelAttr="label"childrenAttr="folders" query="{type:'folder'}" label="Folders">306 childrenAttr="folders" query="{type:'folder'}" label="Folders"> 307 307 <script type="dojo/method" event="onClick" args="item"> 308 308 if(!item){ -
dijit/trunk/tests/test_Tree.html
r12603 r12858 36 36 <p>Clicking a folder node will open/close it (openOnclick==true), and clicking a leaf node will popup an alert.</p> 37 37 <div dojoType="dijit.Tree" id="mytree" 38 model="continentModel" labelAttr="name"childrenAttr="children"38 model="continentModel" childrenAttr="children" 39 39 openOnClick="true"> 40 40 <script type="dojo/method" event="onClick" args="item"> … … 81 81 82 82 <div dojoType="dijit.Tree" id="tree2" 83 model="continentModel" labelAttr="name"childrenAttr="children"83 model="continentModel" childrenAttr="children" 84 84 showRoot="false" openOnClick="true"> 85 85 -
dijit/trunk/tests/test_Tree_Notification_API_Support.html
r11987 r12858 215 215 url="../tests/_data/treeTest.json"></div> 216 216 217 <div dojoType="dijit.Tree" id="myTree" label="root" store="store" onClick="onSelectItem" labelAttr="name"somePropertyAttr="someProperty"></div>217 <div dojoType="dijit.Tree" id="myTree" label="root" store="store" onClick="onSelectItem" somePropertyAttr="someProperty"></div> 218 218 219 219 <br /> -
dijit/trunk/tests/tree/test_Tree_v1.html
r12703 r12858 34 34 onfocus="console.log('user focus handler')" 35 35 onblur="console.log('user blur handler')" 36 label Attr="name" label="Continents" openOnClick="true">36 label="Continents" openOnClick="true"> 37 37 <script type="dojo/method" event="onClick" args="item"> 38 38 alert("Execute of node " + continentStore.getLabel(item) -
dijit/trunk/tests/_inspector.html
r10674 r12858 31 31 <div dojoType="dijit.layout.ContentPane" layoutAlign="left"> 32 32 <div dojoType="dijit.Tree" id="mytree" store="theStore" query="{namespace:'dijit'}" 33 label Attr="className" label="Dijits">33 label="Dijits"> 34 34 <script type="dojo/method" event="onClick" args="item"> 35 35 -
dijit/trunk/themes/themeTester.html
r12854 r12858 8 8 @import "../../dojo/resources/dojo.css"; 9 9 @import "../tests/css/dijitTests.css"; 10 @import "../../dojo/tests/dnd/dndDefault.css"; 10 11 11 12 html, body { height: 100%; width: 100%; padding: 0; border: 0; } 12 13 #main { height: 100%; width: 100%; padding: 0; border: 0; } 13 /* #header, #mainSplit { margin: 10px; } */ 14 #header, #main { margin: 10px; } 14 15 #leftAccordion { width: 25%; } 15 16 #bottomTabs { height: 40%; } … … 56 57 </style> 57 58 58 <script type="text/javascript">59 window.__globalList = {dojo: true, dijit: true, dojox: true, djConfig: true};60 for(var i in window){61 window.__globalList[i] = true;62 }63 </script>64 65 59 <script type="text/javascript" src="../../dojo/dojo.js" 66 60 djConfig="parseOnLoad: false, isDebug: true"></script> … … 71 65 <script type="text/javascript" src="../dijit-all.js"></script> 72 66 67 <script type="text/javascript"> 68 // this is just a list of 'official' dijit themes, you can use ?theme=String 69 // for 'un-supported' themes, too. (eg: yours) 70 var availableThemes = [ 71 { theme:"tundra", author:"Dojo", baseUri:"../themes/" }, 72 { theme:"soria", author:"nikolai", baseUri:"../themes/" }, 73 //{ theme:"noir", author:"owen", baseUri:"../themes/"}, 74 { theme:"nihilo", author:"nikolai", baseUri:"../themes/" } 75 ]; 76 </script> 73 77 <script type="text/javascript" src="../tests/_testCommon.js"></script> 74 78 <script type="text/javascript"> // dojo.requires() … … 126 130 function myHandler(id,newValue){ 127 131 console.debug("onChange for id = " + id + ", value: " + newValue); 132 }; 133 134 function hideLoader(){ 135 var loader = dojo.byId('loader'); 136 dojo.fadeOut({ node: loader, duration:500, 137 onEnd: function(){ 138 loader.style.display = "none"; 139 } 140 }).play(); 128 141 } 129 142 130 143 dojo.addOnLoad(function() { 131 132 // this is just a list of 'official' dijit themes, you can use ?theme=String133 // for 'un-supported' themes, too. (eg: yours)134 var availableThemes = [135 { theme:"tundra", author:"Dojo", baseUri:"../themes/" },136 { theme:"soria", author:"nikolai", baseUri:"../themes/" },137 //{ theme:"noir", author:"owen", baseUri:"../themes/"},138 { theme:"nihilo", author:"nikolai", baseUri:"../themes/" }139 ];140 144 141 145 var holder = dojo.byId('themeData'); … … 148 152 var start = new Date().getTime(); 149 153 dojo.parser.parse(dojo.byId('container')); 150 console. info("Total parse time: " + (new Date().getTime() - start) + "ms");154 console.log("Total parse time: " + (new Date().getTime() - start) + "ms"); 151 155 152 156 dojo.byId('loaderInner').innerHTML += " done."; 153 setTimeout(function hideLoader(){ 154 var loader = dojo.byId('loader'); 155 dojo.fadeOut({ node: loader, duration:500, 156 onEnd: function(){ 157 loader.style.display = "none"; 158 } 159 }).play(); 160 }, 250); 161 162 var strayGlobals = []; 163 for(var i in window){ 164 if(!window.__globalList[i]){ strayGlobals.push(i); } 165 } 166 if(strayGlobals.length){ 167 console.warn("Stray globals: "+strayGlobals.join(", ")); 168 } 157 setTimeout(function(){hideLoader();},250); 158 169 159 }); 170 160 … … 300 290 <!-- tree widget --> 301 291 <div dojoType="dijit.Tree" store="continentStore" query="{type:'continent'}" 302 label Attr="name" typeAttr="type" label="Continents">292 label="Continents"> 303 293 </div> 304 294 </div> … … 685 675 <div style="float:left; margin:5px; "> 686 676 <h3>Source 1</h3> 687 <div dojoType="dojo.dnd.Source" style="border:3px solid #ccc; padding: 1em 3em;">677 <div dojoType="dojo.dnd.Source" class="container"> 688 678 <div class="dojoDndItem">Item <strong>X</strong></div> 689 679 <div class="dojoDndItem">Item <strong>Y</strong></div> … … 693 683 <div style="float:left; margin:5px; "> 694 684 <h3>Source 2</h3> 695 <div dojoType="dojo.dnd.Source" style="border:3px solid #ccc; padding: 1em 3em;">685 <div dojoType="dojo.dnd.Source" class="container"> 696 686 <div class="dojoDndItem">Item <strong>1</strong></div> 697 687 <div class="dojoDndItem">Item <strong>2</strong></div> -
dijit/trunk/themes/themeTesterQuirk.html
r12703 r12858 286 286 <!-- tree widget --> 287 287 <div dojoType="dijit.Tree" store="continentStore" query="{type:'continent'}" 288 label Attr="name" typeAttr="type" label="Continents">288 label="Continents"> 289 289 </div> 290 290 </div>