Finds an interactive mode in the collection given its id.
ImageViewerInteractiveModes.prototype.findById = function(id)
findById(id: number): ImageViewerInteractiveMode;
id
ID to find
The interactive mode found if any, null otherwise.
This method will iterate through all the items in the collection and return the mode where id. If no such mode is found then it will return null.
var panZoom = new lt.Controls.ImageViewerPanZoomInteractiveMode();
panZoom = this._imageViewer.interactiveModes.findById(lt.Controls.ImageViewerInteractiveMode.panZoomModeId);
var inertiaOptions = panZoom.inertiaScrollOptions;
inertiaOptions.isEnabled = true;
panZoom.inertiaScrollOptions = inertiaOptions;
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET