type TJSScrollContainerData = {
    allowTabFocus?: boolean;
    keyPropagate?: boolean;
    onContextMenu?: (data: { event: KeyboardEvent | PointerEvent }) => void;
    scrollLeft?: MinimalWritable<number>;
    scrollTop?: MinimalWritable<number>;
    styles?: { [key: string]: string };
    svelte?: Embed;
}
Index

Properties

allowTabFocus?: boolean

When true, the scroll container is keyboard navigation focusable.

keyPropagate?: boolean

By default, the scroll container stops propagation of all keys that are related to keyboard scrolling accessibility. When true, the scroll container will not capture scrolling key events.

onContextMenu?: (data: { event: KeyboardEvent | PointerEvent }) => void

Callback to handle context menu presses.

scrollLeft?: MinimalWritable<number>

A Svelte store that serializes the scroll left position of the scrollable container.

scrollTop?: MinimalWritable<number>

A Svelte store that serializes the scroll top position of the scrollable container.

styles?: { [key: string]: string }

Inline styles to assign to the container.

svelte?: Embed

A svelte component configuration object used as the content component when there is no slotted component defined.