Reference home > @af-utils/virtual-core > VirtualScroller > attachItem
VirtualScroller.attachItem() method
Start observing size of element at index
Signature:
attachItem(element: HTMLElement, index: number): void;Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
element |
HTMLElement |
element for item |
|
index |
number |
item index |
Returns
void
Remarks
Should be called when element gets mounted. Works in pair with VirtualScroller.detachItem().