[Dojo-interest] Expand my tree on clicking a button
Veyrenche Rémi
remi.ve at gmail.com
Sat Feb 17 09:57:58 MST 2007
Hello,
First thanx to your response.
the Tree node who i want to expand is the Root of my Tree so it's :
<div dojoType="TreeNode" title="name" object="mypage.php" ... >
thanks
2007/2/17, Pappas, Corey D. <cpappas at mitre.org>:
>
>
> I have yet to use the Tree widget, but it doesn't look like there are any
> functions in the Tree.js file that allow you to pass a node to it you want
> to expand. It looks like you would have to do something like
>
> myController.children[i].expand();
>
> where i is the Tree node you want to expand.
>
>
>
> -----Original Message-----
> From: dojo-interest-bounces at dojotoolkit.org on behalf of Veyrenche Rémi
> Sent: Sat 2/17/2007 5:13 AM
> To: dojo-interest at dojotoolkit.org
> Subject: [Dojo-interest] Expand my tree on clicking a button
>
> 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.
>
>
> _______________________________________________
> Dojo FAQ: http://dojo.jot.com/FAQ
> Dojo Book: http://manual.dojotoolkit.org/DojoDotBook
> Dojo-interest at dojotoolkit.org
> http://dojotoolkit.org/mailman/listinfo/dojo-interest
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://dojotoolkit.org/pipermail/dojo-interest/attachments/20070217/3e5383c1/attachment.html
More information about the Dojo-interest
mailing list