core/common/virtual-scroll/virtual-scroll-window-strategy.ts
VirtualScrollStrategy
Properties |
Methods |
constructor(itemSizePx: number, offsetSizePx: number, minBufferPx: number, maxBufferPx: number)
|
scrolledIndexChange |
Type : Observable<number>
|
attach | ||||||||
attach(viewport: CdkVirtualScrollViewport)
|
||||||||
Attaches this scroll strategy to a viewport.
Parameters :
Returns :
void
|
detach |
detach()
|
Detaches this scroll strategy from the currently attached viewport.
Returns :
void
|
onContentRendered |
onContentRendered()
|
Returns :
void
|
onContentScrolled |
onContentScrolled()
|
Returns :
void
|
onDataLengthChanged |
onDataLengthChanged()
|
Returns :
void
|
onRenderedOffsetChanged |
onRenderedOffsetChanged()
|
Returns :
void
|
scrollToIndex | ||||||||||||
scrollToIndex(index: number, behavior: ScrollBehavior)
|
||||||||||||
Scroll to the offset for the given index.
Parameters :
Returns :
void
|
updateItemAndBufferSize | ||||||||||||||||||||
updateItemAndBufferSize(itemSize: number, offsetSizePx: number, minBufferPx: number, maxBufferPx: number)
|
||||||||||||||||||||
Update the item size and buffer size.
Parameters :
Returns :
void
|