moves the specified item to a new position
sid | string | the id of the item to move |
tindex | number | the new position of the item (new index) |
tobj | object | the object that the item is moved to |
details | object | extra parameters for moving |
string | new 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"), {newId:"b13"});
Details object can contain the next properties:
details = {};
details.newId = "123"; //new id for 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 during copying within one and the same component.
Back to top