move

moves files in the queue

void move(string id,number index, [object target,number targetId] );
idstringthe ID of a file
indexnumberthe position to which the file will be placed in the list
targetobjectoptional, the data collection (Data/TreeCollection) where the file will be placed
targetIdnumberoptional, the ID of the node (for TreeCollection) where the file will be placed

Example

// moves the shape with id="img3" to the position with index 0
vault.data.move("img3",0);

See also
Back to top