Class Reference
Classes:
Viewer |
Document
vuzit. Viewer
Vuzit document viewer control class.
Summary
Vuzit document viewer control class. | |
Cleans up all objects and memory. | |
Cleans up all objects and memory related only to displaying a Viewer on a screen | |
Creates the viewer display for the document defined in the “url” property. | |
The Document instance member. | |
The current page number. | |
The current URL of the document. | |
The current zoom level. | |
Hides the viewer on the page. | |
Returns whether the window is in destroyed state. | |
Jumps to the next page. | |
Jumps to the previous page. | |
Sets the URL of the full screen link. | |
Sets the current page. | |
Sets the size of the control after initialization has occurred. | |
Sets the URL of the document. | |
Sets the current zoom level. | |
Unhides the viewer on the screen. |
display
display: function( div, options )
Creates the viewer display for the document defined in the “url” property.
Parameters
| div | Viewer html element <div> |
| options | Sets the options below |
Options
| page | Sets the default page. (Default: 1) |
| x | Sets the position in the X direction. (Default: 0) |
| y | Sets the position in the Y direction. (Default: 0) |
| showDownload | Sets whether to show the download button |
| showFullScreen | Sets whether to show the full screen link |
| showZooms | Sets whether to show zoom buttons |
| showPages | Sets whether to show the page number textbox and next page/previous page arrows |
| zoom | Sets the zoom level for the page. (Default: 1) |
Returns
none
Example
viewer.display(document.getElementById('vuzit_view'), {zoom: 1 });Cleans up all objects and memory.
destroy: function()
Cleans up all objects and memory related only to displaying a Viewer on a screen
destroyDisplay: function()
Creates the viewer display for the document defined in the “url” property.
display: function( div, options )
The Document instance member.
getDocument: function()
The current page number.
getPageNumber: function()
The current URL of the document.
getUrl: function()
The current zoom level.
getZoom: function()
Hides the viewer on the page.
hide: function()
Returns whether the window is in destroyed state.
isDestroyed: function()
Jumps to the next page.
pageNext: function()
Jumps to the previous page.
pagePrevious: function()
Sets the URL of the full screen link.
setFullScreenUrl: function( url )
Sets the current page.
setPageNumber: function( page )
Sets the size of the control after initialization has occurred.
setSize: function( width, height )
Sets the URL of the document.
setUrl: function( url )
Sets the current zoom level.
setZoom: function( zoom )
Unhides the viewer on the screen.
show: function()
