Win a copy of Mastering Corda: Blockchain for Java Developers this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Jj Roberts
  • Carey Brown
  • salvin francis
  • Frits Walraven
  • Piet Souris

How to show icons in Tree using DOJO 0.4

Ranch Hand
Posts: 281
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am using DOJO 0.4 to create a tree. The tree gets successfully created.

My question:
How can I show the lines that connect the nodes? At present, the tree does not show any connecting line.
2) How can I display the tree in fully expanded form? In other words, when the tree gets displayed, all the child nodes are displayed, instead if being collapsed.

Any help will be appreciated.

Following is my code:

<script type="text/javascript">
var djConfig = { isDebug: false };

<script type="text/javascript" src="scripts/dojo.js">
/* Load Dojo engine */

<script type="text/javascript">

dojo.addOnLoad(function() {
function(message) { alert(message.node.title+" selected"); }

<div dojoType="TreeSelector" widgetId="tSelector" eventNames="select:nodeSelected" ></div>

<div dojoType="Tree" selector="tSelector" toggler="explode">
<div dojoType="TreeNode" title="Item 1">
<div dojoType="TreeNode" title="Item 1.1" ></div>
<div dojoType="TreeNode" title="Item 1.2" >
<div dojoType="TreeNode" title="Item 1.2.1" >
<div dojoType="TreeNode" title="Item" ></div>
<div dojoType="TreeNode" title="Item 1.2.2" ></div>
<div dojoType="TreeNode" title="Item 1.3" ></div>
<div dojoType="TreeNode" title="Item 2" ></div>
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think this question would be better suited to somewhere in

moose poop looks like football shaped elk poop. About the size of this tiny ad:
the value of filler advertising in 2020
    Bookmark Topic Watch Topic
  • New Topic