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>,
): TJSScrollContainer Parameters
Returns TJSScrollContainer
Methods
$destroy
$on
- $on<K extends string>(
type: K,
callback: (e: CustomEvent<any>) => void,
): () => void Type Parameters
Parameters
- type: K
- callback: (e: CustomEvent<any>) => void
Returns () => void
$set
- $set(props: Partial<TJSScrollContainer.Props>): void
Parameters
- props: Partial<TJSScrollContainer.Props>
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
class
andprops
fields in TJSScrollContainerData.