Changeset 12858

Show
Ignore:
Timestamp:
03/03/08 17:43:47 (9 months ago)
Author:
bill
Message:

Tree tests specified labelAttr even though there is currently no such attribute.
(And even if there was such an attribute, would only need to specify it when wanted to specify a non-default label.)
Refs #6065.

Location:
dijit/trunk
Files:
7 modified

Legend:

Unmodified
Added
Removed
  • dijit/trunk/demos/mail.html

    r12782 r12858  
    304304                                        <div dojoType="dijit.layout.AccordionPane" title="Folders"> 
    305305                                                <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"> 
    307307                                                        <script type="dojo/method" event="onClick" args="item"> 
    308308                                                                if(!item){ 
  • dijit/trunk/tests/test_Tree.html

    r12603 r12858  
    3636        <p>Clicking a folder node will open/close it (openOnclick==true), and clicking a leaf node will popup an alert.</p> 
    3737        <div dojoType="dijit.Tree" id="mytree" 
    38                 model="continentModel" labelAttr="name" childrenAttr="children" 
     38                model="continentModel" childrenAttr="children" 
    3939                openOnClick="true"> 
    4040                <script type="dojo/method" event="onClick" args="item"> 
     
    8181 
    8282        <div dojoType="dijit.Tree" id="tree2" 
    83                 model="continentModel" labelAttr="name" childrenAttr="children" 
     83                model="continentModel" childrenAttr="children" 
    8484                showRoot="false" openOnClick="true"> 
    8585 
  • dijit/trunk/tests/test_Tree_Notification_API_Support.html

    r11987 r12858  
    215215                url="../tests/_data/treeTest.json"></div> 
    216216 
    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> 
    218218 
    219219        <br /> 
  • dijit/trunk/tests/tree/test_Tree_v1.html

    r12703 r12858  
    3434                onfocus="console.log('user focus handler')" 
    3535                onblur="console.log('user blur handler')" 
    36                 labelAttr="name" label="Continents" openOnClick="true"> 
     36                label="Continents" openOnClick="true"> 
    3737                <script type="dojo/method" event="onClick" args="item"> 
    3838                        alert("Execute of node " + continentStore.getLabel(item) 
  • dijit/trunk/tests/_inspector.html

    r10674 r12858  
    3131                <div dojoType="dijit.layout.ContentPane" layoutAlign="left"> 
    3232                        <div dojoType="dijit.Tree" id="mytree" store="theStore" query="{namespace:'dijit'}" 
    33                                 labelAttr="className" label="Dijits"> 
     33                                label="Dijits"> 
    3434                        <script type="dojo/method" event="onClick" args="item"> 
    3535                 
  • dijit/trunk/themes/themeTester.html

    r12854 r12858  
    88                @import "../../dojo/resources/dojo.css"; 
    99                @import "../tests/css/dijitTests.css"; 
     10                @import "../../dojo/tests/dnd/dndDefault.css"; 
    1011 
    1112                html, body { height: 100%; width: 100%; padding: 0; border: 0; } 
    1213                #main { height: 100%; width: 100%; padding: 0; border: 0; } 
    13 /*              #header, #mainSplit { margin: 10px; } */ 
     14                #header, #main { margin: 10px; } 
    1415                #leftAccordion { width: 25%; } 
    1516                #bottomTabs { height: 40%; } 
     
    5657        </style> 
    5758 
    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  
    6559        <script type="text/javascript" src="../../dojo/dojo.js"  
    6660                djConfig="parseOnLoad: false, isDebug: true"></script> 
     
    7165        <script type="text/javascript" src="../dijit-all.js"></script> 
    7266 
     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> 
    7377        <script type="text/javascript" src="../tests/_testCommon.js"></script> 
    7478        <script type="text/javascript"> // dojo.requires() 
     
    126130                function myHandler(id,newValue){ 
    127131                        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(); 
    128141                } 
    129142 
    130143                dojo.addOnLoad(function() { 
    131  
    132                         // this is just a list of 'official' dijit themes, you can use ?theme=String  
    133                         // 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                         ]; 
    140144 
    141145                        var holder = dojo.byId('themeData'); 
     
    148152                        var start = new Date().getTime(); 
    149153                        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"); 
    151155 
    152156                        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                         
    169159                }); 
    170160 
     
    300290                                        <!-- tree widget --> 
    301291                                        <div dojoType="dijit.Tree" store="continentStore" query="{type:'continent'}" 
    302                                                 labelAttr="name" typeAttr="type" label="Continents"> 
     292                                                label="Continents"> 
    303293                                        </div> 
    304294                                </div> 
     
    685675                                        <div style="float:left; margin:5px; "> 
    686676                                                <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"> 
    688678                                                        <div class="dojoDndItem">Item <strong>X</strong></div> 
    689679                                                        <div class="dojoDndItem">Item <strong>Y</strong></div> 
     
    693683                                        <div style="float:left; margin:5px; "> 
    694684                                                <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"> 
    696686                                                        <div class="dojoDndItem">Item <strong>1</strong></div> 
    697687                                                        <div class="dojoDndItem">Item <strong>2</strong></div> 
  • dijit/trunk/themes/themeTesterQuirk.html

    r12703 r12858  
    286286                                        <!-- tree widget --> 
    287287                                        <div dojoType="dijit.Tree" store="continentStore" query="{type:'continent'}" 
    288                                                 labelAttr="name" typeAttr="type" label="Continents"> 
     288                                                label="Continents"> 
    289289                                        </div> 
    290290                                </div>