EList List
Examples
Preset list items
Header and footer
Pagination
Responsive grid
Empty and loading states
Properties
borderedboolShow the list outer border.
falsecolumnsintRead onlyColumn count resolved from component width and grid breakpoints.
ComputedcurrentPageintCurrent page, starting at 1 and clamped to the valid range.
1effectivePageSizeintRead onlyValidated page size.
ComputedemptyTextstringDescription shown for an empty list.
ELocale.texts.NoDatagridvarResponsive list grid settings; breakpoints follow the container width.
Fields:
columns, column, xs
sm, md, lg
xl, xxl, gutter
itemHeight
nullgutterrealRead onlyValidated grid gutter.
ComputedheaderDelegateComponentCustom list header component.
nullheaderTextstringList header text.
""itemCountintRead onlyTotal number of source items.
ComputeditemDelegateComponentCustom item delegate; receives itemData, itemIndex, and related context.
nullitemsvarList data array; replace it to update the view.
[]loadingboolShow the loading overlay.
falsepageCountintRead onlyComputed total page count, at least 1.
ComputedpageItemsvarRead onlyCurrent page items, or all data when pagination is disabled.
ComputedpageOffsetintRead onlySource array offset of the first item on the current page.
ComputedpageSizeintItems per page; the effective value is at least 1.
10paginationboolEnable built-in pagination.
falserowKeyvarStable key field or (item, index) callback; missing fields fall back to the index.
"key"splitboolShow dividers between list items.
trueviewaliasRead onlyCurrent underlying EListy or GridView instance.
viewLoader.itemSignals
pageChanged(int page)Emitted when the current page changes; page is the new one-based page number.
itemClicked(var item, int index)Emitted when a list item is clicked; item is its data and index is its zero-based index.
Methods
normalizePage()Clamp the current page to the valid range, for example after the page count decreases.
setPage(page)Switch to one-based page page; return true on success, or false when disabled or the page is invalid.
resolveColumns()Return the list column count for the current width and grid configuration.