moves the specified item to a new position
sid | string | the ID of the item to move |
tindex | number | a new position of the item (a new index) |
tobj | object | the object that the item is moved to |
details | object | extra parameters for moving |
string | the item ID |
// moving in the same list
$$("list").move("a12", 0);
$$("list").move("a13", -1);
// moves an item to a different list
var id = $$("list").move("a13", 0, $$("list2"));
The details object can contain the following properties:
details = {};
details.newId = "123"; // a new id for the moved item