Type Alias TJSScrollContainerData
type TJSScrollContainerData = {
allowTabFocus?: boolean;
keyPropagate?: boolean;
onContextMenu?: (data: { event: KeyboardEvent | PointerEvent }) => void;
scrollLeft?: MinimalWritable<number>;
scrollTop?: MinimalWritable<number>;
styles?: { [key: string]: string };
svelte?: Embed;
}
allowTabFocus?: boolean;
keyPropagate?: boolean;
onContextMenu?: (data: { event: KeyboardEvent | PointerEvent }) => void;
scrollLeft?: MinimalWritable<number>;
scrollTop?: MinimalWritable<number>;
styles?: { [key: string]: string };
svelte?: Embed;
}
Index
Properties
Optional
allowTabFocus
allowTabFocus?: boolean
Optional
keyPropagate
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.
Optional
onContextMenu
Callback to handle context menu presses.
Optional
scrollLeft
A Svelte store that serializes the scroll left position of the scrollable container.
Optional
scrollTop
A Svelte store that serializes the scroll top position of the scrollable container.
Optional
styles
styles?: { [key: string]: string }
Inline styles to assign to the container.
Optional
svelte
A svelte component configuration object used as the content component when there is no slotted component defined.
When true, the scroll container is keyboard navigation focusable.