Login Register

Can the dnd method .insertNodes(false, []) take an array of widgets?

I've created an array of widgets, loaded from a store and fully instantiated in a specific order. It goes into my creator function no problem myCreator(item, hint) where the item instead of being a string is an object and I just pass it through after adding a dnd unique id but it stops after returning the first item.

// create function body
node.id = dojo.dnd.getUniqueId();
return {node: node, data: node.label, type: ["canvas"]};

dndContainer.insertNodes(false,array) is a convention

in using dndContainer.insertNodes(false,array), second parameter should be array