Skip to main content

Data Iterator

The DataIterator component is used for displaying data, and shares a majority of its functionality with the DataTable component. Features include sorting, searching, pagination, and selection.

info

For more details about Vuetify’s usage of DataIterator component, click DataIterator page.
For more prop explanations, click Vuetify DataIterator API page.

Props

AttributeDescriptionTypeDefault
classAllows custom properties to take. effect.stringundefined
disabledDisables component.booleanfalse
disableFilteringDisables filtering completely.booleanfalse
disablePaginationDisables pagination completely.booleanfalse
disableSortDisables sorting completely.booleanfalse
expandedArray of expanded items.array[]
footerPropsSee the DataFooter API for more information.object{showFirstLastPage = true,firstIcon = 'mdi-arrow-collapse-left',lastIcon = 'mdi-arrow-collapse-right',prevIcon = 'mdi-minus',nextIcon = 'mdi-plus'}
groupByChanges which item property should be used for grouping items. Currently only supports a single grouping in the format: group or ['group']. When using an array, only the first element is considered.string-array[]
groupDescChanges which direction grouping is done.boolean-array[]
itemsThe array of items to display.array[]
itemsPerPageChanges how many items per page should be visible.Setting this prop to -1 will display all items on the page.number5
loadingIf true and no items are provided, then a loading text will be shown.boolean-stringundefined
localeSets the locale used for sorting.string'en-US'
mobileBreakpointUsed to set when to toggle between regular table and mobile view.number-string600
multiSortIf true then one can sort on multiple properties.booleanfalse
mustSortIf true then one can not disable sorting, it will always switch between ascending and descending.booleanfalse
noDataTextText shown when no items are provided to the component.stringundefined
noResultsTextText shown when search prop is used and there are no results.stringundefined
optionsData options.objectundefined
pageThe value of the showing page.number1
searchText input used to filter items.stringundefined
selectableKeyThe property on each item that is used to determine if it is selectable or notstring'isSelectable'
serverItemsLengthUsed only when data is provided by a server. Should be set to the total amount of items available on server so that pagination works correctly.number-1
singleExpandChanges expansion mode to single expand.booleanfalse
singleSelectChanges selection mode to single select.booleanfalse
sortByChanges which item property (or properties) should be used for sort order.string-arrayundefined
sortDescChanges which direction sorting is done.boolean-arrayundefined
tabindexAllows component to give and receive focus.number
valueUsed for controlling selected rows.array[]
visibleVisibility of DataIterator component.booleantrue

Events

AttributeDescription
click:row(index,row)Event emitted when clicked on a row
item-selected(rowObj)Event emitted when an item is selected or deselected
update:items-per-page(number)Emits when the items-per-page property of the options prop is updated
update:options(updateOptions)Emits when one of the options properties is updated
page-count(number)Emits when the pageCount property of the pagination prop is updated
item-expanded(rowObj)Event emitted when an item is expanded or closed
update:expanded(value)The .sync event for expanded prop
pagination(value)Emits when something changed to the pagination which can be provided via the pagination prop
toggle-select-all(value)Emits when the select-all checkbox in table header is clicked. This checkbox is enabled by the show-select prop