Topic: Any way to add/remove droppables objects after loading miftree?

Hi,

i would like to drag&drop node to object/s which does not exists when the mif.tree is generated. These objects are loaded with ajax.

Is there any solution to add these object/s to mif.tree droppables after ajax load?

Thank you

P.S. great work on MIF tree and menu

Re: Any way to add/remove droppables objects after loading miftree?

try setDroppables(new_drop_objects)

Re: Any way to add/remove droppables objects after loading miftree?

What im doing wrong? (im testing it in onload event)

tree = new Mif.Tree({
      container: $(containerid),
      forest: true,
      initialize: function(){
        ....
      },
      types: {
        ....
    })
    .addEvent('load', function(){
        tree.setDroppables([...]);
    }
);


// return
Error: tree.setDroppables is not a function

Thanks for help and patience

Re: Any way to add/remove droppables objects after loading miftree?

try:
tree.drag.setDroppables

Re: Any way to add/remove droppables objects after loading miftree?

works great, thank you