Interface ItemOffsetMapping
interface ItemOffsetMapping { itemOffset(itemIndex: number): number; itemSize(itemIndex: number): number; offsetToItem(offset: number): [itemIndex
: number, startOffset
: number]; } Methods
itemOffset
- itemOffset(itemIndex): number
Returns number
itemSize
- itemSize(itemIndex): number
Returns number
offsetToItem
- offsetToItem(offset): [itemIndex: number, startOffset: number]
Returns [itemIndex: number, startOffset: number]
Interface that VirtualList and VirtualGrid use to determine size and positioning offset for items in a single dimension.