Resource Base
Table of contents

BrowseViewerConfig

Syntax

interface BrowseViewerConfig {
    canvasStyle?: CanvasStyle;
    pageStyle?: BaseStyle;
    currentPageStyle?: BaseStyle;
    selectedPageStyle?: BaseStyle;
    hoveredPageStyle?: BaseStyle;
    placeholderStyle?: BaseStyle;
    pageNumberStyle?: PageNumberStyle;
    checkboxStyle?: CheckboxStyle;
    rows?: number;
    columns?: number; 
    multiselectMode?: boolean; 
    scrollToLatest?: boolean;
    enableDragPage?: boolean;
    scrollDirection?: string; 
}

Attributes

canvasStyle

The style of canvas of the viewer. Please refer to CanvasStyle.

pageStyle

The style of displayed page in the viewer. Please refer to BaseStyle.

currentPageStyle

The style of current page in the viewer. Please refer to BaseStyle.

selectedPageStyle

The style of selected page in the viewer. Please refer to BaseStyle.

hoveredPageStyle

The style of the page which is hovered by mouse pointer in the viewer. Please refer to BaseStyle.

placeholderStyle

The style of the placeholder when the page is dragged. Please refer to BaseStyle.

pageNumberStyle

The style of page number. Please refer to PageNumberStyle.

checkboxStyle

The style of checkbox. Please refer to CheckboxStyle.

rows

The number of rows. The maximum value is 20.

columns

The number of columns. The maximum value is 20.

multiselectMode

Specify whether to allow multiple pages to be selected at once.

Default value: false

scrollToLatest

Specify whether to scroll to latest page automatically when importing new pages.

Default value: false

enableDragPage

Specify whether to allow drag&drop page feature in the viewer.

Default value: true

scrollDirection

Specify the scroll direction, supported values are vertical, horizontal.

Default value: vertical

scrollDirection BrowseViewer

Remark

  • If you see a blank display after importing images, it is because the container size is too small and rows&columns exceeds, please adjust the container size or rows&columns.

This page is compatible for:

Is this page helpful?

YesYes NoNo

In this article:

latest version

    • Latest version(2.0)
    • Version 1.x
      • Version 1.1
    Change +