<tap-list>

A list component that supports both basic list rendering and infinite scrolling. Items are rendered by renderItem, and large datasets are virtualized when infinite is set.

Example

Infinite Scroll Example

API

Shadow DOM; Extends GemElement

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

Other

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