root / trunk / templates / tree.xml

Revision 1568, 2.1 kB (checked in by david, 3 years ago)

updating EOLs

  • Property svn:eol-style set to native
Line 
1<?xml version="1.0" encoding="utf-8"?>
2<dojo:application xmlns:dojo="http://www.dojotoolkit.org/2004/dojoml" xmlns:xlink="http://www.w3.org/1999/xlink">
3        <dojo:tree id="dojoTreeExample" dataProvider="treeExampleDataModel" propertyProviderList="treeDefinitions" />
4        <dojo:propertySet id="treeDefinitions" componentClass="default">
5                <dojo:propertySet xlink:href="tree.css/.dojoTree" sourceType="css" targetType="all" />
6                <dojo:resizable>yes</dojo:resizable>
7                <dojo:indentation>0.5em</dojo:indentation>
8                <dojo:state type="default" mode="expandedToDepth">
9                        <dojo:expandDepth>3</dojo:expandDepth>
10                </dojo:state>
11                <dojo:treeItems>
12                        <dojo:repetition frequency="1,3,1" propertyProviderList="tree.css/.className1, tree.css/.className2, tree.css/.className3" />
13                        <dojo:rowHeight>1.2em</dojo:rowHeight>
14                </dojo:treeItems>
15                <dojo:treeIconItems>
16                        <dojo:icon type="folderClosed" propertyProviderList="tree.css/.folderClosed" xlink:href="folderClosedIcon.png" sourceType="image" targetType="html" /><!-- could also use a reference to an svgDefsElement in xlink:href -->
17                        <dojo:icon type="folderOpen" propertyProviderList="tree.css/.folderOpen" xlink:href="folderOpenIcon.png" sourceType="image" targetType="all" />
18                        <dojo:icon type="leaf" propertyProviderList="tree.css/.leaf" xlink:href="tree.svg#leaf" sourceType="svg" targetType="svg" />
19                </dojo:treeIconItems>
20        </dojo:propertySet>
21        <dojo:dataModel id="treeExampleDataModel" src="#staticExampleModel" type="xml">
22                <dojo:label elementName="name" />
23                <dojo:treeItem elementName="structure">
24                        <dojo:label elementName="name" />
25                        <dojo:objectRelation elementName="uniqueId" />
26                </dojo:treeItem>
27        </dojo:dataModel>
28
29        <arbitraryDataStructure id="staticExampleModel">
30                <name>testTree</name>
31                <structure>
32                        <name>item1</name>
33                        <uniqueId>record1</uniqueId>
34                </structure>
35                <structure>
36                        <name>item2</name>
37                        <uniqueId>record2</uniqueId>
38                </structure>
39                <structure>
40                        <name>item3</name>
41                        <uniqueId>record3</uniqueId>
42                </structure>
43                <structure>
44                        <name>item4</name>
45                        <uniqueId>record4</uniqueId>
46                </structure>
47        </arbitraryDataStructure>
48</dojo:application>
Note: See TracBrowser for help on using the browser.