FoxitPDFSDKforWeb  8.5.0
Foxit PDF SDK for Web
DivScrollWrap Class Reference

A basic class to create custom ScrollWrap with specified element.
I'm going to rename it from CustomScrollWrap to DivScrollWrap. More...

Inherits ScrollWrap.

Static Public Member Functions

static create (wrapperElement)
 Create a subclass of DivScrollWrap with specified element which should be used to render PDFViewer, and the width, height and overflow property of this element must be defined via CSS. More...
 

Detailed Description

A basic class to create custom ScrollWrap with specified element.
I'm going to rename it from CustomScrollWrap to DivScrollWrap.

// This object can be called when PDFViewer is wrapped in a scrollable DOM with predefined dimensions-height and width.
// html
<div style="width: 100%; height: 600px; overflow: auto;"><div id="pdf-viewer"></div></div>
// script
var pdfViewer = new PDFViewer({
...,
customs: {
ScrollWrap: PDFViewCtrl.DivScrollWrap
}
})
pdfViewer.init('#pdf-viewer');
See also
PDFViewer.constructor
Since
7.6.0

Member Function Documentation

◆ create()

static DivScrollWrap::create (   wrapperElement)
inlinestatic

Create a subclass of DivScrollWrap with specified element which should be used to render PDFViewer, and the width, height and overflow property of this element must be defined via CSS.

Parameters
wrapperElementHTMLElement
See also
PDFViewer.init
Returns
function(new::DivScrollWrap)
Since
7.3.0

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