Class TJSScrollContainer
Hierarchy
- SvelteComponent<TJSScrollContainer.Props, TJSScrollContainer.Events, TJSScrollContainer.Slots>
- TJSScrollContainer (view full)
Index
Constructors
Methods
Constructors
constructor
- new TJSScroll
Container (options): TJSScrollContainer Parameters
Returns TJSScrollContainer
Methods
$destroy
$on
- $on<K>(type, callback): (() => void)
Type Parameters
Parameters
- type: K
- callback: ((e: CustomEvent<any>) => void)
- (e): void
Parameters
- e: CustomEvent<any>
Returns void
Returns (() => void)
- (): void
Returns void
$set
- $set(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.