[Dojo-interest] Expand my tree on clicking a button
Veyrenche Rémi
remi.ve at gmail.com
Sat Feb 17 03:13:56 MST 2007
Hello,
i want to expand my tree when i'm clicking a button "expand" :
my javascript function who don't work :
function expand()
{
var myController = dojo.widget.getWidgetById("Tree");
myController.expand(node);
}
My button :
<button dojoType="Button" onclick="expand()">
Expand
</button>
My tree :
<div dojoType="TreeSelector"
widgetId="treeSelector"
eventNames="select:nodeSelected;dblselect:nodeDblSelected">
</div>
<div dojoType="Tree" toggle="fade" toggleDuration="500"
selector="treeSelector">
<div dojoType="TreeNode" title="name" object="mypage.php" ... >
<div dojoType="TreeNode" title="name"
object="mypage.php" ... >
</div>
</div>
</div>
I think it's exist a simple way to use the expand function, but i'm a
beginners in javascript;
Thanxs to you.
Cheers.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://dojotoolkit.org/pipermail/dojo-interest/attachments/20070217/5e56a50b/attachment.html
More information about the Dojo-interest
mailing list