Wiki source code of Tree

Last modified by Administrator on 2010/03/20 15:46

Show last authors
1 {{velocity}}
2 ## Smartclient
3 $xwiki.jsfx.use("js/smartclient/initsc.js", true)##
4 $xwiki.jsfx.use("js/smartclient/modules/ISC_Core.js")##
5 ## TODO: remove this line
6 ## when http://forums.smartclient.com/showthread.php?t=3097 will be fixed
7 $xwiki.jsfx.use("js/smartclient/overwritesc.js")##
8 $xwiki.jsfx.use("js/smartclient/modules/ISC_Foundation.js")##
9 $xwiki.jsfx.use("js/smartclient/modules/ISC_Containers.js")##
10 $xwiki.jsfx.use("js/smartclient/modules/ISC_Grids.js")##
11 $xwiki.jsfx.use("js/smartclient/modules/ISC_Forms.js")##
12 $xwiki.jsfx.use("js/smartclient/modules/ISC_DataBinding.js")##
13 $xwiki.jsfx.use("js/smartclient/skins/Enterprise/load_skin.js")##
14 ## XWikiExplorer
15 $xwiki.jsfx.use("js/xwiki/xwikiexplorer/xwikiexplorer.js", true)##
16 {{/velocity}}
17 {{html}}
18 <div id="XWEWrapper" style="height:300px;margin-right:20px;padding-bottom:30px;"></div>
19 <script type="text/javascript">
20 isc.XWETreeGrid.create({
21 ID: "Treeview",
22 // Example of default values:
23 // defaultValue: "Main.WebHome",
24 // defaultValue: "Main.RecentChanges@lquo.gif",
25 defaultValue: "",
26 htmlElement: "XWEWrapper", // Mandatory HTML wrapper.
27 matchElement: true, // Make the widget match HTML wrapper size.
28 // Example of data sources:
29 // dataSource: isc.XWEDataSource.create({}),
30 // dataSource: isc.XWESpaceDataSource.create({ space: "Main" }),
31 dataSource: isc.XWEWikiDataSource.create({}),
32 displaySuggest: true, // Display the input at the bottom.
33 displayLinks: true, // Node titles are HTML links.
34 displayAttachments: true, // Display pages attachments.
35 displayAttachmentsOnTop: true // Display attachments before page children.
36 }).draw();
37 </script>
38 {{/html}}