interface ScrollPaneProps {
    createHorizontalScrollbar?: ((props) => ReactNode);
    createScrollCorner?: ((size) => ReactNode);
    createVerticalScrollbar?: ((props) => ReactNode);
    disableTouch?: boolean;
    onScrollViewport?: ((scrollPoint) => void);
    showHorizontalScrollbar?: boolean;
    showVerticalScrollbar?: boolean;
    touchElement?: HTMLElement;
    viewport: ScrollableViewport;
}

Hierarchy (view full)

Properties

createHorizontalScrollbar?: ((props) => ReactNode)

Type declaration

createScrollCorner?: ((size) => ReactNode)

Type declaration

    • (size): ReactNode
    • Parameters

      Returns ReactNode

createVerticalScrollbar?: ((props) => ReactNode)

Type declaration

disableTouch?: boolean

If touch is disabled.

Default Value

false unless no touch events are detected
onScrollViewport?: ((scrollPoint) => void)

Type declaration

    • (scrollPoint): void
    • Parameters

      Returns void

showHorizontalScrollbar?: boolean
showVerticalScrollbar?: boolean
touchElement?: HTMLElement

By default the ScrollPane will listen for events on all of the children of the ScrollPane but this allows for a custom element to be specified. This is useful when the ScrollPane has some elements that should not be touch enabled (for example headers)