跳转到内容

ListViewHandle

此内容尚不支持你的语言。

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

T

readonly content: number

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

The scrolling content frame that items are parented to.


readonly data: DataSource<T>

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

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


readonly entity: number

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

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


readonly scroll: ScrollContainer

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

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


readonly view: ListView<T>

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

The virtualization driver (escape hatch).

dispose(): void

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

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

void


mountedCount(): number

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

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

number


refresh(): void

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

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

void


scrollToIndex(index): void

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

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

number

void