moves an item to the defined position
sid | string|number | id of the source item, mandatory |
tindex | number | target index, optional |
tobj | object | target object (target dataview), optional |
tid | string|number | the id which will be assigned to the item after moving, optional |
//move to some position
myDataView.move(source_id, index);
//move to a different view
myDataView.move(source_id, index, some_other_view);
//or
myDataView.move(source_id, null, some_other_view);
//or
myDataView.move(source_id, index, some_other_view, target_id);
Back to top