cancel
Showing results for 
Search instead for 
Did you mean: 

Create new tree entry when click on add

Former Member
0 Kudos

Hi

I've found the following code (JSBIN) which is more or less what we need in our project but my question is

1. how can I add the functionality that when user click on

Add and select the Parent(like Tree 1 )  it will add new line like config3 etc

2. For remove user should click on the specific entry in the tree that he wants to delete,How this functionality can be achieved in UI5 .

The tree have just parent and child (two levels only like in the example )

JS Bin - Collaborative JavaScript Debugging

Thanks

Miley

Accepted Solutions (1)

Accepted Solutions (1)

former_member182862
Active Contributor
0 Kudos

HI Miley

Maybe this will give you a head start

http://jsbin.com/yuhihe/edit?js,output

Former Member
0 Kudos

HI Dennis

I need that the buttons will remain in the same place as Sai did and I provided in the example

(with multi select on delete...)

Thanks for your new look and feel  !

Regards,

Miley

former_member182862
Active Contributor
0 Kudos

Hi Miley

Actually I am the author of the original JSBin.

Having the user to select the node and then move the mouse to click on the button is not optimal.

JS Bin - Collaborative JavaScript Debugging

-D

saivellanki
Active Contributor
0 Kudos

Hi ,

I second approach. Instead of having two clicks (one at tree node and another at the button), we can have only one click. Where the user can directly add the node.

Thank you Dennis!

Regards,

Sai Vellanki.

Answers (1)

Answers (1)

saivellanki
Active Contributor
0 Kudos

Hi Miley,

Will this help? JS Bin - Collaborative JavaScript Debugging

P.S - Above example will give you an idea, how to add/remove entries. Most of the cases it will work, some cases it might fail since I haven't done much testing on the sample.

Regards,

Sai Vellanki.

Former Member
0 Kudos

Thanks Sai

This is almost what I need ,there is option in delete mode to remove several entires(multi select)?

Regards,

Miley