VueList component is the main container that manages state, data fetching, and provides context to all child components.
Props
API endpoint URL for fetching data. This is passed to the request handler as part of the context.
Additional request payload to include with every request. The request handler will receive this in the context object.
Filter object that is reactive. Use
v-model:filters for two-way binding. When filters change, the list automatically refetches data and resets to page 1.Initial page number to load. This is only the initial value - the actual page state is managed internally by the component.
Number of items to fetch per page. This is the initial value - the actual state is managed internally.
Column/field name to sort by initially. The actual sort state is managed internally.
Initial sort direction. Must be either
'asc' (ascending) or 'desc' (descending).Initial search query. The actual search state is managed internally.
List of attribute names to display in the list. Can be an array of strings or objects. If not provided, keys from the first response item will be used.
Custom request handler function for this specific list. Overrides the global request handler defined in plugin options.
Version identifier for the list configuration. Used by the state manager to identify when configuration changes and clean up stale states.
Increment the version number when you make significant changes to the list configuration, such as changing filters or attributes.
Enable pagination history in the URL. When enabled, the current page number is added to the URL as a query parameter.
Pagination mode to use:
'pagination': Standard pagination with page numbers'loadMore': Load more button that appends items to the existing list
Events
Emitted when the selection changes.
Emitted when a response is received from the API, before items are set.
Emitted after a page change in pagination mode (not in loadMore mode).
Emitted after loading more items in loadMore mode.