Class TJSScrollContainer
Hierarchy
- SvelteComponent<
TJSScrollContainer.Props,
TJSScrollContainer.Events,
TJSScrollContainer.Slots,
>- TJSScrollContainer (View Summary)
Indexable
- [prop: string]: any
Index
Constructors
Methods
Constructors
constructor
- new TJSScrollContainer(
options: ComponentConstructorOptions<TJSScrollContainer.Props>,
): TJSScrollContainerParameters
Returns TJSScrollContainer
Methods
$destroy
Returns void
$on
Type Parameters
- K extends string
Parameters
- type: K
- callback: (e: CustomEvent<any>) => void
Returns () => void
Provides a convenient scrollable container / DIV that always allows keyboard scroll navigation by stopping propagation of page up / down key events when the active element is or is contained by the container.
Auto serialization of scroll state is handled by providing a store /
scrollTop.A main slot is provided for a content component, but a fallback allows a child content component to be defined by the
classandpropsfields in TJSScrollContainerData.