Data iterator
The v-data-iterator
component is used for displaying data, and shares a majority of its functionality with the v-data-table
component. Features include sorting, searching, pagination, and selection.
Usage
The v-data-iterator
allows you to customize exactly how to display your data. In this example we are using a grid list with cards. We can use the content-tag
prop (along with content-class
and content-props
) to specify what the wrapper element around the items should look like.
API
Applies a custom class to the wrapper element around items
Applies custom props to the wrapper element around items
Specified what tag should be used for the wrapper element around items
Custom search filter
Custom sort filter
Applies the dark theme variant
Disable default sorting on initial render
Designates the table as containing rows that are expandable
The function used for filtering items
Hide the table actions
The field in the item object that designates a unique key
The array of table rows
Applies the light theme variant
Forces at least one column to always be sorted instead of toggling between sorted ascending / sorted descending / unsorted states
The displayed icon for forcing pagination to the next page
Display text when there is no data
Display text when there are no filtered results
Used to control pagination and sorting from outside the data table. Can also be used to set default sorted column
{
descending: boolean",
page: number",
rowsPerPage: number // -1 for All",
sortBy: string",
totalItems: number"
}
The displayed icon for forcing pagination to the previous page
The default values for the rows-per-page dropdown
The default rows per page text
The search model for filtering results
Adds header row select all checkbox. Can either be a String which specifies which color is applied to the button, or a Boolean (which uses the default color)
Manually sets total number of row items, which disables built-in sort and pagination. Used together with pagination prop to enable server-side sort and pagination
Selected row items