Skip to main content
cngx-src documentation

CngxRecyclerRowContext

Interface

projects/common/data/recycler/recycler-row.directive.ts

Referenced by#

Import#

import { CngxRecyclerRowContext } from '@cngx/common/data'

Description#

Context for the placeholder branch of *cngxRecyclerRow - the window slot whose item has not loaded yet (undefined). A custom placeholder: template reads this to keep the list count honest for assistive technology: aria-posinset = index + 1, aria-setsize = setSize.

The real-row branch (item defined) binds $implicit to the item value instead; that context is internal and narrowed by ngTemplateContextGuard.

Index#

Instance Properties#

$implicit#number

The absolute dataset index of this slot. Alias of index.

index#number

The absolute dataset index of this slot.

setSize#number

Total set size (recycler.ariaSetSize()) for aria-setsize.

Pixel offset of the slot from the top of the scroll content.