<dy-list>

A versatile list component that supports both basic list rendering and infinite scrolling. It can display items with avatars, titles, and descriptions, and supports custom rendering and virtualization for large datasets.

Example

Infinite Scroll Example

API

DuoyunListElement

Extends TapListElement

DuoyunListElement Instance Properties

Property(Attribute) Reactive Type
renderItem Yes (item: any) => TemplateResult

TapListElement

Shadow DOM; Extends GemElement

TapListElement Instance Properties

Property(Attribute) Reactive Type Description
data Yes any[] @deprecated
items Yes any[]
backward Emitter
key Yes any
renderItem Yes (item: any) => TemplateResult
debug(debug) Yes boolean
infinite(infinite) Yes boolean enable infinite scroll, virtualization render
getKey Yes (item: any) => Key If infinite scrolling is enabled, this method must be provided
scrollContainer Yes HTMLElement
forward Emitter only infinite
itemshow Emitter<any> only infinite
get/set persistentState PersistentState Setter: initState

TapListElement Other

Type Value
Event backward, forward, itemshow
Slot before, after
Part list, item, before-outside, after-outside