Scrollbar item.

interface IScrollbarItem {
    isDisposed: boolean;
    key: string;
    render: (props: { index: number }) => HTMLElement;
    dispose(): void;
}

Hierarchy

Properties

Methods

Properties

isDisposed: boolean

Test whether the object has been disposed.

This property is always safe to access.

key: string

Unique item key used for caching.

render: (props: { index: number }) => HTMLElement

Render the scrollbar item as an HTML element.

Methods

  • Dispose of the resources held by the object.

    If the object's dispose method is called more than once, all calls made after the first will be a no-op.

    It is undefined behavior to use any functionality of the object after it has been disposed unless otherwise explicitly noted.

    Returns void