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
OptionalallowTabFocus
allowTabFocus?: boolean
OptionalkeyPropagate
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.
OptionalonContextMenu
Callback to handle context menu presses.
OptionalscrollLeft
A Svelte store that serializes the scroll left position of the scrollable container.
OptionalscrollTop
A Svelte store that serializes the scroll top position of the scrollable container.
Optionalstyles
styles?: { [key: string]: string }
Inline styles to assign to the container.
Optionalsvelte
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.