Reference home > @af-utils/virtual-core
virtual-core package
Core framework-agnostic model.
Remarks
What it does:
-
stores item sizes and positions;
-
tracks elements resizing;
-
provides performant way to calculate offsets;
-
deals with scrolling to item index or to offset;
-
emits and allows to subscribe to events.
What it doesn’t do:
-
rendering;
-
styling;
-
all other framework-related stuff.
Classes
|
Class |
Description |
|---|---|
|
Core framework-agnostic model. |
Interfaces
|
Interface |
Description |
|---|---|
|
All VirtualScroller parameters (that may / may not change over time). | |
|
VirtualScroller parameters that may change over time. Used as VirtualScroller.set() argument type. |
Variables
|
Variable |
Description |
|---|---|
|
Possible events, supported by VirtualScroller.on() method |
Type Aliases
|
Type Alias |
Description |
|---|---|
|
VirtualScrollerEvent is exported as constant, so separate type is needed to emulate enum behavior | |
|
Numeric snapshot of scroll position | |
|
Scrollable container type |