Type Alias TJSScrollContainerData
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;
}
Type declaration
Optional
allowTabFocus?: booleanOptional
keyPropagate?: booleanBy 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?: (data: { event: KeyboardEvent | PointerEvent }) => voidCallback to handle context menu presses.
Optional
scrollLeft?: MinimalWritable<number>A Svelte store that serializes the scroll left position of the scrollable container.
Optional
scrollTop?: MinimalWritable<number>A Svelte store that serializes the scroll top position of the scrollable container.
Optional
styles?: { [key: string]: string }Inline styles to assign to the container.
Optional
svelte?: EmbedA 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.