File

core/common/virtual-scroll/virtual-scroll-window.directive.ts

Implements

OnChanges

Metadata

Index

Properties
Methods
Inputs
Accessors

Inputs

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).

Methods

ngOnChanges
ngOnChanges()
Returns : void

Properties

_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.

Accessors

itemSizePx
getitemSizePx()

The size of the items in the list (in pixels).

Returns : number
setitemSizePx(value: number)
Parameters :
Name Type Optional
value number No
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 :
Name Type Optional
value number No
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 :
Name Type Optional
value number No
Returns : void
offsetSizePx
getoffsetSizePx()

The size of the offset (in pixels).

Returns : number
setoffsetSizePx(value: number)
Parameters :
Name Type Optional
value number No
Returns : void

results matching ""

    No results matching ""