

Last date modified: August 21 2025
Production Viewer IViewerCardInstance
optional
cardActivated: (api
,card
) =>void
Called after the card is activated in a dock.
• api: IReviewInterfaceApi
• card: ICard
void
IOutsideInViewer
.cardActivated
optional
cardBuildTabOptions: (api
,card
,item
,productionArtifactId
?,longTextFieldArtifactId
?,productionType
?) =>IViewerCardTabOption
[] |Promise
<IViewerCardTabOption
[]>
If provided, this function will be called to build custom viewer tab options for the viewer card.
If no function is provided, a default tab will be created based on the card title.
• api: IReviewInterfaceApi
• card: IViewerCard
• item: IQueueItem
• productionArtifactId?: number
• longTextFieldArtifactId?: number
• productionType?: ProductionType
IViewerCardTabOption
[] | Promise
<IViewerCardTabOption
[]>
IOutsideInViewer
.cardBuildTabOptions
optional
cardBuildToolbarOptions: (api
,card
,viewerToolbar
) =>void
|Promise
<void
>
If provided, this function will be called to build custom viewer toolbar options for the viewer card.
• api: IReviewInterfaceApi
• card: IViewerCard
• viewerToolbar: IToolbar
void
| Promise
<void
>
IOutsideInViewer
.cardBuildToolbarOptions
optional
cardCanDeactivate: (api
,card
) =>boolean
Called before the card deactivates to check if it is safe to do so
• api: IReviewInterfaceApi
• card: ICard
boolean
IOutsideInViewer
.cardCanDeactivate
optional
cardCreateUnsupportedOverlayCard: (api
,card
,item
) =>Promise
<ICard
>
Called when the viewer collection needs a card to show when the viewer does not support the item. A default placeholder is shown if this method is not provided.
• api: IReviewInterfaceApi
• card: IViewerCard
• item: IQueueItem
Promise
<ICard
>
IOutsideInViewer
.cardCreateUnsupportedOverlayCard
optional
cardDeactivated: (api
,card
) =>void
Called after the card is deactivated in a dock.
• api: IReviewInterfaceApi
• card: ICard
void
IOutsideInViewer
.cardDeactivated
optional
cardError: (api
,card
,err
) =>void
Called whenever an error occurs while managing the card
• api: IReviewInterfaceApi
• card: ICard
• err: Error
void
optional
cardLoaded: (api
,card
,target
) =>void
|Promise
<void
>
Called after the card content has loaded
• api: IReviewInterfaceApi
• card: ICard
• target: HTMLElement
void
| Promise
<void
>
optional
cardLoadState: (api
,card
,saveData
) =>void
Called to restore the state of the card
• api: IReviewInterfaceApi
• card: ICard
• saveData: ICardCustomState
void
IOutsideInViewer
.cardLoadState
optional
cardMaximized: (api
,card
) =>void
Called when the card is maximized
• api: IReviewInterfaceApi
• card: ICard
void
IOutsideInViewer
.cardMaximized
optional
cardResized: (api
,card
) =>void
Called when the card is resized
• api: IReviewInterfaceApi
• card: ICard
void
optional
cardRestored: (api
,card
) =>void
Called when the card is no longer maximized
• api: IReviewInterfaceApi
• card: ICard
void
optional
cardSaveState: (api
,card
) =>ICardCustomState
Called to save the state of the card
• api: IReviewInterfaceApi
• card: ICard
IOutsideInViewer
.cardSaveState
optional
cardUnloaded: (api
,card
) =>void
|Promise
<void
>
Called before the card content is unloaded
• api: IReviewInterfaceApi
• card: ICard
void
| Promise
<void
>
readonly
contextualSearchView:BasicView
Contextual Search View
IOutsideInViewer
.contextualSearchView
currentPageIndex:
number
Gets the current page index.
IOutsideInViewer
.currentPageIndex
currentPageName:
string
Gets the current page name
IOutsideInViewer
.currentPageName
readonly
designationRendering:DesignationRendering
The current designation rendering for the viewer or undefined if none is set
IOutsideInViewer
.designationRendering
readonly
hasWaveform:boolean
Checks if the current native supports the waveform view
readonly
highlights:IViewerHighlightManager
Gets the Persistent Highlights Manager object
readonly
id:string
Unique viewer instance ID
readonly
loadError:Error
Populated with error when loadSuccessful is false. Otherwise, undefined.
readonly
loadSuccessful:boolean
Returns true, if document was loaded into view without error.
IOutsideInViewer
.loadSuccessful
oiPagesLoadedCount:
number
Gets the current number of loaded pages for the current document.
IOutsideInViewer
.oiPagesLoadedCount
readonly
shouldHighlight:boolean
Whether highlights should be applied to the currently loaded document
IHighlightViewer
.shouldHighlight
showWaveformView:
boolean
Gets or sets the waveform viewer for multimedia
IOutsideInViewer
.showWaveformView
readonly
thumbnailView:BasicView
The Thumbnail viewer for the view
IOutsideInViewer
.thumbnailView
readonly
timelineView:BasicView
The Timeline viewer for the view
readonly
transcriptDesignationRendering:DesignationRendering
The current designation rendering for the associated transcript (if there is one) or undefined if none is set
If there is no associated transcript or if it has not yet been initialized, this will return undefined.
IOutsideInViewer
.transcriptDesignationRendering
readonly
transcriptView:View
The Transcript viewer for the view
IOutsideInViewer
.transcriptView
readonly
transientHighlight:ITransientHighlightManager
The Transient Highlight Manager for the view
IOutsideInViewer
.transientHighlight
readonly
type:string
Viewer type - this should match the viewer type from the configuration object
readonly
optional
unsupportedTabTitle:string
If provided, this defines the viewer's tab title when the viewer does not support the current queue item.
If not provided, the title will default to "No " in this scenario.
IOutsideInViewer
.unsupportedTabTitle
cardLoadItem(
item
,options
, ...rest
):Promise
<boolean
>
Called when the viewer card should load a new queue item
• item: IQueueItem
Queue item to be loaded
• options: ILoadOptions
Load options
• ...rest: any
[]
Promise
<boolean
>
Promise that resolves to a boolean indicating whether or not the load was successful
checkHasFeature(
feature
):boolean
Checks the OI Aqua API to see whether the viewer's current state can support the specified feature
• feature: ViewFeature
The ViewFeature (enum) being checked
boolean
Whether or not the viewer can support the specified feature
IOutsideInViewer
.checkHasFeature
createCellRange(
sheet
,c1
,r1
,c2
?,r2
?):CellRangeMemento
Creates a CellRangeMemento representing the cell or range of cells at the specified spreadsheet or database table, row(s), and column(s). * *
• sheet: number
The 0-based index of the page containing the range *
• c1: number
The 0-based index of the leftmost column of the range *
• r1: number
The 0-based index of the topmost row of the range *
• c2?: number
The 0-based index of the rightmost column of the range *
• r2?: number
The 0-based index of the bottommost row of the range *
CellRangeMoment object built with the provided arguments
IOutsideInViewer
.createCellRange
createRectRange(
sheet
,left
,top
,right
?,bottom
?,units
?,hdpi
?,vdpi
?):RectRangeMemento
Creates a RectRangeMemento representing a rectangle on the specified page
• sheet: number
The 0-based index of the page containing the range
• left: number
The left edge of the rectangular range
• top: number
The top edge of the rectangular range
• right?: number
The right edge of the rectangular range
• bottom?: number
The bottom edge of the rectangular range
• units?: string
The units for left, top, right and bottom
• hdpi?: number
For "px" units, the horizontal DPI for the page containing the range
• vdpi?: number
For "px" units, the vertical DPI for the page containing the range
RectRangeMoment object built with the provided arguments
IOutsideInViewer
.createRectRange
createTextRange(
acc
,accend
):TextRangeMemento
Creates a TextRangeMemento corresponding to the specified ACC (actual character count) range
• acc: number
The first character of the ACC range (inclusive)
• accend: number
The last character of the ACC range (non-inclusive)
IOutsideInViewer
.createTextRange
getAquaView(
type
):Promise
<View
>
Internal
INTERNAL ONLY: Method for getting the aqua view based on the specified type If you call this on a viewer that will never have a transcript file(e.g. image viewer), or if the viewer hasn't loaded a document type that supports a transcript(i.e. an av or mdb file), the returned promise will never resolve.
• type: AquaViewType
The type of view to get
Promise
<View
>
getExternalContent(
edge
):HTMLElement
Returns the element that represents the external content previously set on the requested edge (top/left/right/bottom) for this view.
• edge: ToolbarLocation
The edge (top/left/right/bottom) for which to get content.
HTMLElement
The requested external content, or null if none has been set.
IOutsideInViewer
.getExternalContent
getFeatureManager<
T
>(featureName
):T
Gets a feature manager instance for the specified feature
• TextendsIViewerFeatureManager
• featureName: "transcript"
The name of the feature
T
The feature manager instance or undefined if not found
IOutsideInViewer
.getFeatureManager
getHiddenContentStatus():
HiddenContentType
Returns Outside In Show/Hide hidden Items status
The status of hidden content shown in the viewer (On or Off)
IOutsideInViewer
.getHiddenContentStatus
getObjectsAtPosition(
x
,y
):IViewerObjects
Retrieves viewer objects at the specified position, including:
NOTE: This method will return undefined when no objects are present at the specified position
• x: number
X coordinate of the position
• y: number
Y coordinate of the position
Object containing the viewer objects at the specified position
IOutsideInViewer
.getObjectsAtPosition
getObjectsAtTranscriptPosition(
x
,y
):IViewerObjects
Retrieves viewer objects at the specified position in the transcript view, including:
NOTE: This method will return undefined when no objects are present at the specified position or when the transcript view is not available
• x: number
X coordinate of the position
• y: number
Y coordinate of the position
Object containing the viewer objects at the specified position
IOutsideInViewer
.getObjectsAtTranscriptPosition
getPageHeight(
index
?):number
The height of the page, in pixels, at 100% zoom and 0 degrees rotation
• index?: number
Optional - if provided, will get height of page at designated index, otherwise will get height of current page
number
IOutsideInViewer
.getPageHeight
getPageRotation(
index
):number
Gets the page rotations in degrees for a particular page
• index: number
number
Page rotation value
IRotatableViewer
.getPageRotation
getPageWidth(
index
?):number
The width of the page, in pixels, at 100% zoom and 0 degrees rotation
• index?: number
Optional - if provided, will get width of page at designated index, otherwise will get width of current page
number
getSelectionMode():
string
Get the current selection mode
string
IOutsideInViewer
.getSelectionMode
hasFeature(
featureName
):boolean
Checks if the viewer has a specific feature enabled
• featureName: "transcript"
The name of the feature to check
boolean
True if the feature is available, false otherwise
hasPaging():
boolean
Checks if the current document supports page navigation
boolean
moveToNextPage():
void
Moves to the next page on the OI Doc
void
Rendering is asynchronous while the call to move to page is synchronous
IOutsideInViewer
.moveToNextPage
moveToPage(
pageIndex
):void
Moves to pageIndex if exists in the OI document.
• pageIndex: number
Index of target page. This index is 0-based.
void
Rendering is asynchronous while the call to move to page is synchronous
moveToPreviousPage():
void
Moves to the previous page on the OI Doc
void
Rendering is asynchronous while the call to move to page is synchronous
IOutsideInViewer
.moveToPreviousPage
off(
eventType
,handler
?,once
?):void
Unregisters an event handler
• eventType: ViewerHighlightEventType
Event to unregister from
• handler?: EventHandler
Event handler function. If not passed in, it removes all event handlers.
• once?: boolean
Boolean indicating if the event handler was registered as a one-time event handler (Defaults to false)
void
on(
eventType
,handler
):void
Registers an event handler
• eventType: ViewerHighlightEventType
Event to listen for
• handler: EventHandler
Event handler function
void
once(
eventType
,handler
):void
Registers an event handler that is only run once
• eventType: ViewerHighlightEventType
Event to listen for
• handler: EventHandler
Event handler function
void
openAboutModal():
Promise
<DialogCancellableOpenResult
>
Opens the About Viewer Modal
Promise
<DialogCancellableOpenResult
>
IOutsideInViewer
.openAboutModal
openConfirmDeleteImagesModal():
Promise
<void
>
Opens the Confirm Delete Images modal *
Promise
<void
>
IOutsideInViewer
.openConfirmDeleteImagesModal
openSaveAsPdfModal():
Promise
<DialogCancellableOpenResult
>
Opens the Save as PDF Modal
Promise
<DialogCancellableOpenResult
>
IOutsideInViewer
.openSaveAsPdfModal
openSingleFileUploadModal(
isImage
,imagesExist
?,imagingProfileId
?):Promise
<void
>
Opens the Single File Upload modal
• isImage: boolean
• imagesExist?: boolean
• imagingProfileId?: number
Promise
<void
>
IOutsideInViewer
.openSingleFileUploadModal
rotateAllPagesClockwise():
Promise
<boolean
>
Rotates the all pages clockwise 90 degrees based on the current page (The topmost image) orientation and updates the database
Promise
<boolean
>
Promise that resolves to a boolean indicating whether it succeeded or not
IRotatableViewer
.rotateAllPagesClockwise
rotateCurrentPageClockwise():
Promise
<boolean
>
Rotates the current page (The topmost image) clockwise 90 degrees and updates the database
Promise
<boolean
>
Promise that resolves to a boolean indicating whether it succeeded or not
IRotatableViewer
.rotateCurrentPageClockwise
selectCellRange(
cellRange
):boolean
Makes the specified cell range the active selection
• cellRange: CellRangeMemento
Specifies the cell range to select
boolean
true if the selection changed, false if it did not change
IOutsideInViewer
.selectCellRange
selectionRange():
CellRangeMemento
|RectRangeMemento
|TextRangeMemento
|TimeRangeMemento
Returns a range memento representing currently selected text, rect, or cell
CellRangeMemento
| RectRangeMemento
| TextRangeMemento
| TimeRangeMemento
Range representing the currently selected text, rect, or cell
IOutsideInViewer
.selectionRange
selectRectRange(
rectRange
):boolean
Makes the specified rect range the active selection
• rectRange: RectRangeMemento
Specifies the rect range to select
boolean
true if the selection changed, false if it did not change
IOutsideInViewer
.selectRectRange
selectTextRange(
textRange
):boolean
Makes the specified text range the active selection
• textRange: TextRangeMemento
Specifies the text range to select
boolean
true if the selection changed, false if it did not change
IOutsideInViewer
.selectTextRange
setDesignationRendering(
designationRendering
):void
Sets the designation rendering for the viewer
• designationRendering: DesignationRendering
Designation rendering value to use
void
IOutsideInViewer
.setDesignationRendering
setExternalContent(
elem
,edge
?):void
Sets an element to respresent external content which is to be displayed on the requested edge of this view.
• elem: HTMLElement
An HTMLElement which represents the desired external content to be displayed.
• edge?: ToolbarLocation
An optional edge (top/left/right/bottom) to display the external content on. If not provided, the default is 'top'.
void
IOutsideInViewer
.setExternalContent
setPageLayoutMode(
scrollMode
):void
Sets the page layout mode for the current OI View using the passed in value
• scrollMode: ViewerScrollMode
scroll mode setting
void
IOutsideInViewer
.setPageLayoutMode
setPageRotation(
rotation
,index
):Promise
<boolean
>
Sets the page rotation for a particular page and updates the database
Only accepts intervals of 90 degrees
• rotation: number
• index: number
Promise
<boolean
>
Promise that resolves to a boolean indicating whether it succeeded or not
IRotatableViewer
.setPageRotation
setPageRotationAllImages(
rotation
):Promise
<boolean
>
Sets all page rotations for a document and updates the database
Only accepts intervals of 90 degrees
• rotation: number
Promise
<boolean
>
Promise that resolves to a boolean indicating whether it succeeded or not
IRotatableViewer
.setPageRotationAllImages
setSelectionMode(
mode
):void
Set a new selection mode
• mode: string
Mode to set: rect, text, cell, or none
void
IOutsideInViewer
.setSelectionMode
setTranscriptDesignationRendering(
designationRendering
):void
Sets the designation rendering for the associated transcript (if there is one)
• designationRendering: DesignationRendering
Designation rendering value to use
If there is no associated transcript or if it has not yet been initialized the provided designation rendering value will be saved and applied when the transcript is initialized.
void
IOutsideInViewer
.setTranscriptDesignationRendering
protected
showBanner(message
,details
,level
,clickToRemove
,link
?):void
Method for displaying a banner on the viewer card
• message: string
Message to display in the banner
• details: string
[]
Details to display in the banner
• level: NotificationLevel
Notification level of banner
• clickToRemove: boolean
Whether the user can click to remove the banner
• link?: LinkOption
An optional link to display in the banner
void
showHiddenContent(
showHiddenContent
):void
Show or hide hidden content in the document
• showHiddenContent: boolean
True will show the hidden content and false will hide them
void
IOutsideInViewer
.showHiddenContent
toggleFilterDrawer(
opened
):void
Toggles the filter viewer drawer
• opened: boolean
Whether the drawer should be opened or not
void
IOutsideInViewer
.toggleFilterDrawer
toggleThumbnails(
showThumbnails
):void
DO NOT DELETE -- Called by embedded Shows or hides the OI Thumbnail view
• showThumbnails: boolean
Show or Hide the thumbnail view.
void
IOutsideInViewer
.toggleThumbnails
totalPageCount():
number
returns the total number of pages on the current document
number
this will return the total page count for the active viewer's document
IOutsideInViewer
.totalPageCount
zoomIn():
number
Increases the zoom factor of the current view.
number
The zoom factor after zooming.
zoomOut():
number
Decreases the zoom factor of the current view.
number
The zoom factor after zooming.
zoomToFit(
zoomMode
):number
Zooms the current view based on the ViewerZoomMode enum value provided.
• zoomMode: ViewerZoomMode
The Viewer Zoom Mode enum for the view.
number
The zoom factor after zooming.
zoomToIndex(
zoomIndex
):number
Zooms the current view to the factor provided, rounded to the nearest integer. If the zoomIndex provided is greater than the maximum valid zoom factor, the document is zoomed to the maximum valid zoom factor. If the zoomIndex provided is less than the minimum valid zoom factor, the document is zoomed to the minimum valid zoom factor.
• zoomIndex: number
The new zoom factor for the view.
number
The zoom factor after zooming.
On this page
Why was this not helpful?
Check one that applies.
Thank you for your feedback.
Want to tell us more?
Great!
Additional Resources |
|||
DevHelp Community | GitHub | Release Notes | NuGet |