Add folders and subitems unto treetable

Good day, I try to execute arbol.add({ type: ‘file’, casa: ‘Sin número’, id: ‘7777’ }, 1,2); however not was added in the second folder. If I use: arbol.add({ type: ‘file’, casa: ‘Sin número’, id: ‘7777’ }, 1) is added in the second position, this is right.

Also maybe you know how to add only a folder.

Al is into treetable.

Thanks.

When using add in tree and treetable the second parameter is the index in the target branch, not the global visible index.

So if you need to add item to the target folder you can use

some.add(data_object, null, target_folder_id);

http://webix.com/snippet/743a757b

thanks.