move
moves the specified item to a new position
string move(string sid,number tindex, [object tobj,object details] );
| 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 |
Example
// 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"));
See also
Back to top
Join Our Forum
We've retired comments here. Visit our forum for faster technical support,
connect with other developers, and share your feedback there.