Class ecm.widget.dialog.ContentViewerWindow
Provides a separate browser window that displays the ContentViewer widget.
Defined in: <ecm\widget\dialog\ContentViewerWindow.js>.
Constructor Summary
Constructor Attributes | Constructor Name and Description |
---|---|
Method Summary
Method Attributes | Method Name and Description |
---|---|
<static> |
ecm.widget.dialog.ContentViewerWindow.ContentViewerWindow.getSizeAndPosition()
Returns the size and position of the viewer window as an Object.
|
<static> |
ecm.widget.dialog.ContentViewerWindow.ContentViewerWindow.saveSizeAndPosition()
Persists the size and position of the viewer window in a browser cookie.
|
This event is called when the viewer window closes.
|
|
This event is called when the viewer window opens and the ContentViewer is ready to use.
|
|
open(item, openInBackground)
Opens an item in the viewer.
|
|
preview(item, openInBackground)
Previews an item in the viewer.
|
Method Detail
constructor()
<static> ecm.widget.dialog.ContentViewerWindow.ContentViewerWindow.getSizeAndPosition()
Returns the size and position of the viewer window as an Object.
- Returns:
- An object containing the size and position of the window. The object contains left, top, width and height. For example: {left: 0, top: 0, width: 100, height: 100}
<static> ecm.widget.dialog.ContentViewerWindow.ContentViewerWindow.saveSizeAndPosition()
Persists the size and position of the viewer window in a browser cookie.
onViewerWindowClosed()
This event is called when the viewer window closes.
onViewerWindowOpened()
This event is called when the viewer window opens and the ContentViewer is ready to use.
open(item, openInBackground)
Opens an item in the viewer.
- Parameters:
- item
- The item to view.
- openInBackground
preview(item, openInBackground)
Previews an item in the viewer.
- Parameters:
- item
- The item to view.
- openInBackground