Template context for a single item of the virtual scroll.

IgxVsItemContext

new IgxVsItemContext($implicit: T, index: number, count: number): IgxVsItemContext

Defined in projects/igniteui-angular/virtual-scroll/src/virtual-scroll/types.ts:3

Returns IgxVsItemContext

The current item in the virtual scroll.

$implicit: T

Defined in projects/igniteui-angular/virtual-scroll/src/virtual-scroll/types.ts:5

The total number of items in the virtual scroll.

count: number

Defined in projects/igniteui-angular/virtual-scroll/src/virtual-scroll/types.ts:9

The index of the current item.

index: number

Defined in projects/igniteui-angular/virtual-scroll/src/virtual-scroll/types.ts:7

Whether the current item is at an even index.

get even(): boolean

Defined in projects/igniteui-angular/virtual-scroll/src/virtual-scroll/types.ts:23

Returns boolean

Whether the current item is the first in the list.

get first(): boolean

Defined in projects/igniteui-angular/virtual-scroll/src/virtual-scroll/types.ts:13

Returns boolean

Whether the current item is the last in the list.

get last(): boolean

Defined in projects/igniteui-angular/virtual-scroll/src/virtual-scroll/types.ts:18

Returns boolean

Whether the current item is at an odd index.

get odd(): boolean

Defined in projects/igniteui-angular/virtual-scroll/src/virtual-scroll/types.ts:28

Returns boolean