Interface SheetScrollbarProps

interface SheetScrollbarProps {
    createScrollEndButton?: ((props) => ReactElement<any, string | JSXElementConstructor<any>>);
    createScrollStartButton?: ((props) => ReactElement<any, string | JSXElementConstructor<any>>);
    endGap?: number;
    endScrollIncrement?: number;
    minSize?: number;
    offset: number;
    onScrollOffset: ((offset, viewportSize, totalSize) => void);
    orientation: ScrollbarOrientation;
    precisionFactor?: number;
    scaleFactor?: number;
    scaleLimit?: number;
    scrollButtonAdditionalRepeatDelay?: number;
    scrollButtonIncrement?: number;
    scrollButtonInitialRepeatDelay?: number;
    sheetModel: ISheetModel;
    showCustomScrollButtons?: boolean;
    totalSize: number;
    viewportSize: number;
    onCloseTooltip?(): void;
    onShowTooltip?(properties): void;
}

Hierarchy (view full)

Properties

createScrollEndButton?: ((props) => ReactElement<any, string | JSXElementConstructor<any>>)

Type declaration

    • (props): ReactElement<any, string | JSXElementConstructor<any>>
    • Parameters

      Returns ReactElement<any, string | JSXElementConstructor<any>>

createScrollStartButton?: ((props) => ReactElement<any, string | JSXElementConstructor<any>>)

Type declaration

    • (props): ReactElement<any, string | JSXElementConstructor<any>>
    • Parameters

      Returns ReactElement<any, string | JSXElementConstructor<any>>

endGap?: number

Amount of scrollbar between minSize and totalSize. This is mean to show that there is more scroll area.

Default Value

100
endScrollIncrement?: number

Determines the increment amount when the scrollbar has been dragged to the end but is not scrolled to total size.

Default Value

100;
minSize?: number

If this is the minimum scrollbar size. By default this is the bottom of the viewport but can be extended.

Default Value

0
offset: number
onScrollOffset: ((offset, viewportSize, totalSize) => void)

Type declaration

    • (offset, viewportSize, totalSize): void
    • Parameters

      • offset: number
      • viewportSize: number
      • totalSize: number

      Returns void

precisionFactor?: number

The default precision. This is a factor of the scale factor.

Default Value

50
scaleFactor?: number

The factor amount for physical scaling

Default Value

100
scaleLimit?: number

The max size of the area before scaling is implemented.

Default Value

1000000
scrollButtonAdditionalRepeatDelay?: number
scrollButtonIncrement?: number
scrollButtonInitialRepeatDelay?: number
sheetModel: ISheetModel

The Sheet Model for the given scrollBar.

showCustomScrollButtons?: boolean

Default Value

false
totalSize: number
viewportSize: number

Methods

  • Returns void