Type Alias TJSScrollContainerData
allowTabFocus?: boolean;
attach?: Action<HTMLElement, undefined, any>;
gutterStable?: boolean;
keyPropagate?: boolean;
onContextMenu?: (data: { event: KeyboardEvent | PointerEvent }) => void;
padToVisualEdge?: VisualEdgeSides;
scrollLeft?: MinimalWritable<number>;
scrollTop?: MinimalWritable<number>;
styles?: { [key: string]: string };
svelte?: Embed<SvelteComponent<any, any, any>, { PropsOmit: never }>;
}
Properties
OptionalallowTabFocus
Optionalattach
Optional Svelte action to attach to scroll container element.
OptionalgutterStable
When true, the scrollbar gutter is set to stable. This is a convenience
for automatic configuration without a wrapping element to set a CSS variable.
OptionalkeyPropagate
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.
OptionalpadToVisualEdge
When true, the inline styles for padding of the parent element to the scroll container element is adjusted for any visual edge insets / border image applied to the parent element allowing the scroll container to take up the entire visual content space. You may also specify specific sides for application of visual edge padding inset constraints.
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
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.