Skip to content

ListViewHandle

Defined in: ui/widgets/list-view.ts:179

T

readonly content: number

Defined in: ui/widgets/list-view.ts:183

The scrolling content frame that items are parented to.


readonly data: DataSource<T>

Defined in: ui/widgets/list-view.ts:185

The data source — mutate an ArrayDataSource here to update the list.


readonly entity: number

Defined in: ui/widgets/list-view.ts:181

The viewport entity (the clipped window; add it to your UI tree).


readonly scroll: ScrollContainer

Defined in: ui/widgets/list-view.ts:187

The scroll model (escape hatch: scroll.scrollBy, onScroll, …).


readonly view: ListView<T>

Defined in: ui/widgets/list-view.ts:189

The virtualization driver (escape hatch).

dispose(): void

Defined in: ui/widgets/list-view.ts:197

Tear down: unregister, release items, drop scroll/data subscriptions.

void


mountedCount(): number

Defined in: ui/widgets/list-view.ts:195

Number of item entities currently mounted (for virtualization checks).

number


refresh(): void

Defined in: ui/widgets/list-view.ts:191

Force a re-sync of mounted items on the next frame.

void


scrollToIndex(index): void

Defined in: ui/widgets/list-view.ts:193

Scroll so item index is at the top-left of the viewport.

number

void