core/common/virtual-scroll/virtual-scroll-window.directive.ts
Providers |
{
provide: VIRTUAL_SCROLL_STRATEGY, useFactory: _virtualScrollWindowStrategyFactory, deps: [forwardRef(() => VirtualScrollWindowDirective)]
}
|
Selector | cdk-virtual-scroll-viewport[windowVirtualScrollStrategy] |
Properties |
Methods |
Inputs |
Accessors |
itemSizePx |
Type : number
|
The size of the items in the list (in pixels). |
maxBufferPx |
Type : number
|
The number of pixels worth of buffer to render for when rendering new items. Defaults to 200px. |
minBufferPx |
Type : number
|
The minimum amount of buffer rendered beyond the viewport (in pixels). If the amount of buffer dips below this number, more items will be rendered. Defaults to 100px. |
offsetSizePx |
Type : number
|
The size of the offset (in pixels). |
ngOnChanges |
ngOnChanges()
|
Returns :
void
|
_itemSizePx |
Type : number
|
Default value : 20
|
_maxBufferPx |
Type : number
|
Default value : 200
|
_minBufferPx |
Type : number
|
Default value : 100
|
_offsetSizePx |
Type : number
|
Default value : 0
|
_scrollStrategy |
Type : VirtualScrollWindowStrategy
|
Default value : new VirtualScrollWindowStrategy(
this.itemSizePx,
this.offsetSizePx,
this.minBufferPx,
this.maxBufferPx
)
|
The scroll strategy used by this directive. |
itemSizePx | ||||||
getitemSizePx()
|
||||||
The size of the items in the list (in pixels).
Returns :
number
|
||||||
setitemSizePx(value: number)
|
||||||
Parameters :
Returns :
void
|
minBufferPx | ||||||
getminBufferPx()
|
||||||
The minimum amount of buffer rendered beyond the viewport (in pixels). If the amount of buffer dips below this number, more items will be rendered. Defaults to 100px.
Returns :
number
|
||||||
setminBufferPx(value: number)
|
||||||
Parameters :
Returns :
void
|
maxBufferPx | ||||||
getmaxBufferPx()
|
||||||
The number of pixels worth of buffer to render for when rendering new items. Defaults to 200px.
Returns :
number
|
||||||
setmaxBufferPx(value: number)
|
||||||
Parameters :
Returns :
void
|
offsetSizePx | ||||||
getoffsetSizePx()
|
||||||
The size of the offset (in pixels).
Returns :
number
|
||||||
setoffsetSizePx(value: number)
|
||||||
Parameters :
Returns :
void
|