Skip to content

Latest commit

 

History

History
122 lines (68 loc) · 2.34 KB

File metadata and controls

122 lines (68 loc) · 2.34 KB

Interface: VGridHandle

Methods of VGrid.

Table of contents

Methods

Properties

Methods

scrollToIndex

scrollToIndex(indexX, indexY): void

Scroll to the item specified by index.

Parameters

Name Type Description
indexX number horizontal index of item
indexY number vertical index of item

Returns

void

Defined in

src/react/VGrid.tsx:202


scrollTo

scrollTo(offsetX, offsetY): void

Scroll to the given offset.

Parameters

Name Type Description
offsetX number offset from left
offsetY number offset from top

Returns

void

Defined in

src/react/VGrid.tsx:208


scrollBy

scrollBy(offsetX, offsetY): void

Scroll by the given offset.

Parameters

Name Type Description
offsetX number horizontal offset from current position
offsetY number vertical offset from current position

Returns

void

Defined in

src/react/VGrid.tsx:214

Properties

scrollOffset

Readonly scrollOffset: [x: number, y: number]

Get current scrollTop or scrollLeft.

Defined in

src/react/VGrid.tsx:188


scrollSize

Readonly scrollSize: [width: number, height: number]

Get current scrollHeight or scrollWidth.

Defined in

src/react/VGrid.tsx:192


viewportSize

Readonly viewportSize: [width: number, height: number]

Get current offsetHeight or offsetWidth.

Defined in

src/react/VGrid.tsx:196