VDataIterator API
name | type | default |
|---|---|---|
FilterFunction | undefined | |
Function to filter items. | ||
unknown
| undefined | |
Function used on specific keys within the item object. | ||
unknown
| undefined | |
Function used on specific keys within the item object. | ||
string[] | [] | |
Array of expanded items. Can be bound to external variable using v-model:expanded. | ||
boolean
| false | |
Expands item when the row is clicked. | ||
string | string[] | undefined | |
Array of specific keys to filter on the item. | ||
'every' | 'some' | 'union' | 'intersection' | 'intersection' | |
Controls how the results of
| ||
SortItem[] | [] | |
Configures attributes (and sort order) to group items together. | ||
'asc' | 'desc' | 'asc' | |
Specifies the initial sort order when an toggleSort is called for unsorted property. | ||
unknown[] | [] | |
An array of strings or objects used for automatically generating children components. | ||
SelectItemKey | null | |
Property on supplied | ||
string | number | undefined | |
The total number of items. Useful when using server-side pagination to correctly compute page counts. | ||
string | number | 5 | |
Changes how many items per page should be visible. Can be bound to external variable using v-model:itemsPerPage… Setting this prop to | ||
SelectItemKey | 'id' | |
Property on supplied | ||
boolean
| false | |
If | ||
any[] | [] | |
The v-model value of the component. If component supports the multiple prop, this defaults to an empty array. | ||
| boolean | { key: 'ctrl'; mode: 'prepend' | 'append'; modifier: 'shift' | 'alt' } | false | |
Let user sort by multiple properties/columns.
| ||
boolean
| false | |
Forces sorting on the column(s). | ||
boolean
| false | |
Disables all item filtering. | ||
string | number | 1 | |
The current displayed page number (1-indexed). | ||
'item' | 'auto' | 'any' | 'any' | |
Controls how pagination counts items.
| ||
boolean
| false | |
Changes the selection behavior to return the object directly rather than the value specified with item-value. | ||
string
| undefined | |
Text input used to filter items. | ||
'all' | 'page' | 'single' | 'page' | |
Defines the strategy of selecting items in the list. Possible values are: ‘single’ (only one item can be selected at a time), ‘page’ (‘Select all’ button will select only items on the current page), ‘all’ (‘Select all’ button will select all items in the list). | ||
boolean
| false | |
Shows the expand icon. | ||
boolean
| false | |
Shows the column with checkboxes for selecting items in the list. | ||
SortItem[] | [] | |
Array of column keys and sort orders that determines the sort order of the table. | ||
string | (new () => any) | FunctionalComponent | 'div' | |
Specify a custom tag used on the root element. | ||
| string | boolean | (TransitionProps & { component: Component }) | { component: Component; hideOnLeave: boolean } | {component: {name: 'fade-transition'}, hideOnLeave: true} | |
Sets the component transition. Can be one of the built in or custom transition. | ||
(a: any, b: any) => boolean | undefined | |
Apply a custom comparison algorithm to compare model-value and values contains in the items prop. | ||
name | type | |
|---|---|---|
[any] | ||
Emits with the items currently being displayed. | ||
[any] | ||
Emits when the expanded items are updated. | ||
[any] | ||
Emits when the group-by prop is updated. | ||
[number] | ||
Emits when the items-per-page prop is updated. | ||
[any[]] | ||
Event that is emitted when the component’s model changes. | ||
[any] | ||
Emits when pagination related properties (page, itemsPerPage, sortBy, groupBy, search) is updated. | ||
[number] | ||
Emits when the page prop is updated. | ||
[any] | ||
Emits when the sortBy prop is updated. | ||
The default slot. Use this to render your items. | ||
Defines a footer below the items. | ||
Defines a header above the items. | ||
Slot for custom loader (displayed when loading prop is equal to true). | ||
Defines content for when no items are provided. | ||