Documentation

move

moves the specified item to the new position

string move(string sid,number tindex, [object tobj,object details] );

Parameters

sidstringthe id of the item to move
tindexnumberthe new position of the item (new index)
tobjobjectthe object that the item is moved to
detailsobjectextra parameters for moving

Returns

stringthe item id

See also

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"));

Back to top