EListy Virtual list
Examples
Virtual list
Group by callback
Sticky group headings
Custom item delegate
Locate by stable key
Properties
datasetvarRead onlyBuilt row data and error information.
ComputederrorStringstringRead onlyInvalid data or callback error description; empty on success.
ComputedgroupvarGroup key and group title configuration.
Fields:
key, title
nullgroupHeaderDelegateComponentCustom group header; receives groupKey and groupTitle.
nullindexOffsetintSource index offset; EList uses it to preserve indexes across pages.
0itemDelegateComponentCustom item delegate; receives itemData, itemIndex, and related context.
nullitemsvarList data array; replace it to update the view.
[]overscanrealDelegate cache distance beyond the viewport in pixels.
120rowKeyvarStable key field or (item, index) callback; missing fields fall back to the index.
"key"rowsvarRead onlyGrouped rows retaining source index, stable key, and grouping metadata.
ComputedstickyboolKeep the current group heading at the top.
falsevirtualboolCreate and reuse delegates on demand; false expands the cache to all content.
trueSignals
itemClicked(var item, int index)Emitted when a list item is clicked; item is its data and index is its zero-based index.
Methods
scrollTo(config)Scroll to an item or position using config.