You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
67 lines
2.4 KiB
67 lines
2.4 KiB
2 years ago
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
|
||
|
"http://www.w3.org/TR/html4/strict.dtd">
|
||
|
<html>
|
||
|
<head>
|
||
|
|
||
|
<script type="text/javascript">
|
||
|
var djConfig = {isDebug: true, debugAtAllCosts: true };
|
||
|
</script>
|
||
|
<script type="text/javascript" src="../../../dojo.js"></script>
|
||
|
<script type="text/javascript">
|
||
|
|
||
|
dojo.require("dojo.widget.*");
|
||
|
dojo.require("dojo.widget.TreeV3");
|
||
|
dojo.require("dojo.widget.TreeNodeV3");
|
||
|
dojo.require("dojo.widget.TreeEditor");
|
||
|
dojo.require("dojo.widget.TreeBasicControllerV3");
|
||
|
dojo.require("dojo.widget.TreeContextMenuV3");
|
||
|
dojo.require("dojo.widget.TreeDemo");
|
||
|
dojo.hostenv.writeIncludes();
|
||
|
|
||
|
|
||
|
|
||
|
dojo.addOnLoad(function() {
|
||
|
dojo.addOnLoad(function() { dojo.widget.TreeDemo.bindDemoMenu(dojo.widget.byId("treeController")) });
|
||
|
});
|
||
|
|
||
|
</script>
|
||
|
|
||
|
|
||
|
</head>
|
||
|
<body>
|
||
|
|
||
|
<h2>A basic markup tree with menu,controller and multiline content</h2>
|
||
|
|
||
|
|
||
|
<div dojoType="TreeEditor" widgetId="editor"></div>
|
||
|
<div dojoType="TreeBasicControllerV3" widgetId="treeController" editor="editor"></div>
|
||
|
|
||
|
<div dojoType="TreeContextMenuV3" toggle="explode" contextMenuForWindow="false" widgetId="contextMenu">
|
||
|
<div dojoType="TreeMenuItemV3" treeActions="addChild" iconSrc="../images/createsmall.gif" widgetId="treeContextMenuCreate" caption="Create"></div>
|
||
|
<div dojoType="TreeMenuItemV3" treeActions="remove" iconSrc="../images/removesmall.gif" caption="Remove" widgetId="treeContextMenuDestroy"></div>
|
||
|
<div dojoType="TreeMenuItemV3" treeActions="move" iconSrc="../images/downsmall.png" caption="Up" widgetId="treeContextMenuUp"></div>
|
||
|
<div dojoType="TreeMenuItemV3" treeActions="move" iconSrc="../images/upsmall.png" caption="Down" widgetId="treeContextMenuDown"></div>
|
||
|
<div dojoType="TreeMenuItemV3" treeActions="edit" caption="Edit" widgetId="treeContextMenuEdit"></div>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<div dojoType="TreeV3" listeners="treeController;contextMenu">
|
||
|
<div dojoType="TreeNodeV3" title="Item 1" widgetId="Item 1">
|
||
|
<div dojoType="TreeNodeV3" title="Item 1.1" widgetId="Item 1.1"></div>
|
||
|
<div dojoType="TreeNodeV3" title="Item 1.2" widgetId="Item 1.2"></div>
|
||
|
</div>
|
||
|
|
||
|
<div dojoType="TreeNodeV3" title="Item 2<br/>title long yeah" widgetId="Item 2">
|
||
|
<div dojoType="TreeNodeV3" title="Item 2.1" widgetId="Item 2.1"></div>
|
||
|
</div>
|
||
|
|
||
|
<div dojoType="TreeNodeV3" title="Item 3" isFolder="true" widgetId="Item 3"></div>
|
||
|
<div dojoType="TreeNodeV3" title="Item 4" widgetId="Item 4"></div>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</body>
|
||
|
</html>
|