Check documentation for the latest version of dhtmlxSuite moveUp DHTMLX Docs

moveUp

changes the index of an item by moving it to the start of the list by the defined count of steps

void moveUp(string|number id, [number step] );

Parameters

idstring|numberid of the item in question
stepnumberthe count of steps, optional, 1 by default

Example

myList.moveUp(id);
//or
myList.moveUp(id,10);

Back to top