PDA

View Full Version : Code to create folder like in the Laszlo mail


sandhya
11-05-2008, 11:25 PM
Hi
I need to code to create folder when the user clicks the "Add new folder" icon similar to one we have in Laszlo mail application.

Could some one please help me with this.

Sandhya

rcyeager
11-06-2008, 09:34 AM
This?


<canvas debug="true">
<button text="Create tab">
<handler name="onclick">
new tabpane(mytabs, {"text": "My Tab"})
</handler>
</button>

<tabs name="mytabs" y="100" width="300" height="300"/>
</canvas>


Robert Yeager
http://www.qrowd.com
http://www.cooqy.com

sandhya
11-06-2008, 10:27 AM
Hi Robert,

I want to create folder structure when i click the "Add new folder"

Sandhya

rcyeager
11-06-2008, 11:01 AM
What do you mean?

Robert Yeager
http://www.qrowd.com
http://www.cooqy.com

kmeixner
11-06-2008, 11:55 AM
What do you mean?

Robert Yeager
http://www.qrowd.com
http://www.cooqy.com

I think he probably means he wants to create a new non-leaf node in a <tree> object when a button is clicked.

Kevin

sandhya
11-07-2008, 10:21 AM
Can some give me the code to add new node to a tree.

How can i add node to the particular node that is selected in the tree.

Thanks

rcyeager
11-07-2008, 10:34 AM
The opttree test at lps/components/incubator/test/opttree loads data into the tree when nodes are opened.

Robert Yeager
http://www.qrowd.com
http://www.cooqy.com

sandhya
11-07-2008, 01:08 PM
Its a bit complicated. Can some post something simple code for adding node to tree.

Thanks