move

moves the specified item to a new position

string move(string sid,number tindex, [object tobj,object details] );
sidstringthe ID of the item to move
tindexnumbera new position of the item (a new index)
tobjobjectthe object that the item is moved to
detailsobjectextra parameters for moving
stringthe item ID

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
If you have not checked yet, be sure to visit site of our main product Webix html5 library and page of javascript menu product.