<dy-list>

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