copies an item to the same or another object
| sid |
gridb.attachEvent("onBeforeDrop", function(context, ev){
for (var i=0; i< context.source.length; i++){
context.from.copy(context.source[i],context.index,this,{newId:webix.uid()});
}
return false;
});
In the sample above:
The details object can contain the following properties:
details = {};
details.newId = "123"; // a new id for the moved item
Note that in case newId is not defined, the new ID will be the same as the ID of the source item (sid), which is not desirable while copying takes place within one and the same component.