Show
Ignore:
Timestamp:
09/20/07 22:56:56 (3 years ago)
Author:
bill
Message:

Refactor tree to have a special node (without a corresponding item) at the top of
the tree, so that (for example) the continents/countries tree in test_Tree.html can
have a top node marked "Continents" even though there is no such item in the
data store.

This change requires handlers like onClick() to not fail when item==null, but
rather to assume that's the root node.

Fixes #4527, #4419, #4457.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dojox/trunk/data/demos/demo_LazyLoad.html

    r9497 r10580  
    5959        --> 
    6060        <b>Continents</b> 
    61         <div dojoType="dijit.Tree" id=tree store="continentStore" query="{type:'continent'}" 
     61        <div dojoType="dijit.Tree" id=tree label="Continents" store="continentStore" query="{type:'continent'}" 
    6262                labelAttr="name" typeAttr="type"></div> 
    6363        </blockquote>