DocuVieware Reference Guide
Reference Guides > JavaScript API > Events > RegisterOnThumbnailsOrderChanged

This function allows you trigger a function of your own when the thumbnails order has been changed (ie. the pages have been reordered).

RegisterOnThumbnailsOrderChanged: function (docuViewareID, callback)


The identifier for the DocuVieware™ instance.
The function you want to execute on event.
The callback provides an argument having a prototype { source, destination }.
- source is an array that contains the page number (or page numbers in case of multiple selection) that have been moved.
- destination is the position the selection has been moved to.

Return Value

1 if error.