DocuVieware Reference Guide
RegisterOnThumbnailsOrderChanged
Reference Guides > JavaScript API > Events > RegisterOnThumbnailsOrderChanged
 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)

Parameters

docuViewareID
The identifier for the DocuVieware™ instance.
callback
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.