FoxitPDFSDKforWeb  v10.0.0
Foxit PDF SDK for Web
ScrollWrap Class Reference

Scroll bar container component, Controls the scrolling of a pdfviewer view
. More...

Inheritance diagram for ScrollWrap:
Disposable DivScrollWrap

Public Member Functions

 getHeight ()
 Gets the height of the view. More...
 
 getScrollHost ()
 Gets the host of the scroll bar that needs to be listened to for scroll events.
. More...
 
 getScrollLeft ()
 Viewer's scroll bar left value. More...
 
 getScrollOffsetLeft ()
 Viewer relative to the left of the scroll hosts. More...
 
 getScrollOffsetTop ()
 Viewer relative to the top of the scroll hosts. More...
 
 getScrollTop ()
 Viewer's scroll bar top value. More...
 
 getScrollX ()
 Gets the value of the horizontal scroll bar. More...
 
 getScrollY ()
 Gets the value of the vertical scroll bar. More...
 
 getWidth ()
 Holds the width of the view. More...
 
 scrollBy (x, y)
 Scroll to relative position. More...
 
 scrollTo (x, y)
 Scroll to position. More...
 
- Public Member Functions inherited from Disposable
 addDestroyHook (...hooks)
 
 destroy ()
 

Detailed Description

Scroll bar container component, Controls the scrolling of a pdfviewer view
.

Example:
function example () {
new PDFViewer({
customs: {
ScrollWrap: class CustomScrollWrap extends ScrollWrap {
constructor (viewerRender) {
super(viewerRender)
}
}
}
})
}

Member Function Documentation

◆ getHeight()

ScrollWrap::getHeight ( )
inline

Gets the height of the view.

Returns
number -

◆ getScrollHost()

ScrollWrap::getScrollHost ( )
inline

Gets the host of the scroll bar that needs to be listened to for scroll events.
.

Returns
Window|Document|HTMLElement|Element -

◆ getScrollLeft()

ScrollWrap::getScrollLeft ( )
inline

Viewer's scroll bar left value.

Returns
number -

◆ getScrollOffsetLeft()

ScrollWrap::getScrollOffsetLeft ( )
inline

Viewer relative to the left of the scroll hosts.

Returns
number -

◆ getScrollOffsetTop()

ScrollWrap::getScrollOffsetTop ( )
inline

Viewer relative to the top of the scroll hosts.

Returns
number -

◆ getScrollTop()

ScrollWrap::getScrollTop ( )
inline

Viewer's scroll bar top value.

Returns
number -

◆ getScrollX()

ScrollWrap::getScrollX ( )
inline

Gets the value of the horizontal scroll bar.

Returns
number -

◆ getScrollY()

ScrollWrap::getScrollY ( )
inline

Gets the value of the vertical scroll bar.

Returns
number -

◆ getWidth()

ScrollWrap::getWidth ( )
inline

Holds the width of the view.

Returns
number -

◆ scrollBy()

ScrollWrap::scrollBy (   x,
  y 
)
inline

Scroll to relative position.

Parameters
xnumber -
ynumber -

◆ scrollTo()

ScrollWrap::scrollTo (   x,
  y 
)
inline

Scroll to position.

Parameters
xnumber -
ynumber -

Foxit Software Corporation Logo
@2024 Foxit Software Incorporated. All rights reserved.