You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Callback function to calculate and return the length(height or width) of each item by index.
70
70
71
-
### `offsetVisibleIndex = {0}`
71
+
### `offsetVisibleIndex = 0`
72
72
Number of extra items (overscan) to be rendered before/after the visible range.
73
73
74
-
### `virtualization = {'vertical'}`
74
+
### `layout = 'vertical'`
75
75
Set whether to use `vertical` or `horizontal` virtualization.
76
76
77
-
### `enableResizeObserver = {false}`
77
+
### `enableResizeObserver = false`
78
78
Set wether to update visible item indexes on element resize.
79
79
80
-
### `disableVirtualization = {false}`
80
+
### `disableVirtualization = false`
81
81
Set to disable virtualization (the `onVisibleRangeChange` callback will still be called).
82
82
83
+
### `resetOnIndex(index: number = 0, shouldUpdate: boolean = true): void`
84
+
Rebuilds the items cached scrollOffset index on and after the specified index when called. Useful when the size of an item changes in your list, e.g. expanded/collapsed. By default calling this method will trigger an update, use `shouldUpdate` to override this behaviour.
85
+
86
+
### `scrollToItem(index: number): void`
87
+
Scrolls to the specified item index when called. (The item aligns to the beginning of the list).
88
+
83
89
## Browser Support
84
90
`<VirtualScroller>` supports `es2020` JavaScript features for desktop and
85
91
mobile browsers and builds upon standard web platform APIs so that the performance,
0 commit comments