VDataTableVirtual API
name | type | default |
|---|---|---|
| Record<string, any> | (( data: Pick< ItemKeySlot<any>, 'value' | 'item' | 'column' | 'index' | 'internalItem' >, ) => Record<string, any>) | undefined | |
An object of additional props to be passed to each | ||
| string | (string | [string, number])[] | (new () => any) | FunctionalComponent | '$collapse' | |
Icon to display when the expandable row is expanded. | ||
string
| undefined | |
Applies a color to checkboxes, page size dropdown and sort badges in the table header. | ||
FilterFunction | undefined | |
Function used to filter items, called for each filterable key on each item in the list. The first argument is the filterable value from the item, the second is the search term, and the third is the internal item object. The function should return true if the item should be included in the filtered list, or the index of the match in the value if it should be included with the result highlighted. | ||
unknown
| undefined | |
Function used on specific keys within the item object. | ||
unknown
| undefined | |
Function used on specific keys within the item object. | ||
'default' | 'comfortable' | 'compact' | 'default' | |
Adjusts the vertical height used by the component. | ||
boolean
| false | |
Toggles rendering of sort button. | ||
string[] | [] | |
Array of expanded items. Can be bound to external variable using v-model:expanded. | ||
| string | (string | [string, number])[] | (new () => any) | FunctionalComponent | '$expand' | |
Icon to display when the expandable row is collapsed. | ||
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
| ||
boolean
| false | |
Use the fixed-footer prop together with the height prop to fix the footer to the bottom of the table. | ||
boolean
| false | |
Sticks the header to the top of the table. | ||
SortItem[] | [] | |
Defines the grouping of the table items. | ||
| string | (string | [string, number])[] | (new () => any) | FunctionalComponent | '$tableGroupCollapse' | |
MISSING DESCRIPTION (edit in github) | ||
| string | (string | [string, number])[] | (new () => any) | FunctionalComponent | '$tableGroupExpand' | |
MISSING DESCRIPTION (edit in github) | ||
unknown
| undefined | |
Pass props to the default header. | ||
{ readonly key?: | (string & {}) | 'data-table-group' | 'data-table-select' | 'data-table-expand' | undefined readonly value?: SelectItemKey<any> readonly title?: string | undefined readonly fixed?: boolean | 'end' | 'start' | undefined readonly align?: 'end' | 'start' | 'center' | undefined readonly width?: string | number | undefined readonly minWidth?: string | number | undefined readonly maxWidth?: string | number | undefined readonly nowrap?: boolean | undefined readonly indent?: number | undefined readonly headerProps?: { readonly [x: string]: any } | undefined readonly cellProps?: | { readonly [x: string]: any } | HeaderCellPropsFunction | undefined readonly sortable?: boolean | undefined readonly sort?: DataTableCompareFunction<any> | undefined readonly sortRaw?: DataTableCompareFunction<any> | undefined readonly filter?: FilterFunction | undefined readonly children?: readonly any[] | undefined }[] | undefined | |
An array of objects that each describe a header column. | ||
string | number | undefined | |
Use the height prop to set the height of the table. | ||
boolean
| false | |
Hides the default body. | ||
boolean
| false | |
Hides the default header. | ||
boolean
| false | |
Hides the menu when there are no options to show. Useful for preventing the menu from opening before results are fetched asynchronously. Also has the effect of opening the menu when the | ||
boolean
| false | |
Will add a hover effect to a table’s row when the mouse is over it. | ||
'asc' | 'desc' | 'asc' | |
Specifies the initial sort order when an unsorted column is clicked. | ||
string | number | null | |
Height in pixels of each item to display. | ||
SelectItemKey | null | |
The property on each item that is used as a unique key. | ||
any[] | [] | |
An array of strings or objects used for automatically generating children components. | ||
SelectItemKey | null | |
Property on supplied | ||
SelectItemKey | 'id' | |
Property on supplied | ||
string | boolean | false | |
Displays linear progress bar. Can either be a String which specifies which color is applied to the progress bar (any material color or theme color - primary, secondary, success, info, warning, error) or a Boolean which uses the component color (set by color prop - if it’s supported by the component) or the primary color. | ||
string
| '$vuetify.dataIterator.loadingText' | |
Text shown when the data is loading. | ||
boolean
| false | |
Determines the display mode of the component. If true, the component will be displayed in mobile mode. If false, the component will be displayed in desktop mode. If null, will be based on the current mobile-breakpoint | ||
number | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl' | undefined | |
Overrides the display configuration default screen size that the component should be considered in mobile. | ||
unknown
| [] | |
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). | ||
string
| '$vuetify.noDataText' | |
Text shown when no items are provided to the component. | ||
boolean
| false | |
Disables all item filtering. | ||
boolean
| false | |
Changes the selection behavior to return the object directly rather than the value specified with item-value. | ||
| Record<string, any> | (( data: Pick<ItemKeySlot<any>, 'item' | 'index' | 'internalItem'>, ) => Record<string, any>) | undefined | |
An object of additional props to be passed to each | ||
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. | ||
| string | (string | [string, number])[] | (new () => any) | FunctionalComponent | '$sortAsc' | |
Icon used for ascending sort button. | ||
SortItem[] | [] | |
Array of column keys and sort orders that determines the sort order of the table. | ||
| string | (string | [string, number])[] | (new () => any) | FunctionalComponent | '$sortDesc' | |
Icon used for descending sort button. | ||
| string | (string | [string, number])[] | (new () => any) | FunctionalComponent | undefined | |
Icon used for unsorted columns. By default it uses either sortAscIcon or sortDescIcon depending on initialSortOrder, but can be customized to show a neutral icon instead. | ||
boolean
| false | |
Deprecated, use | ||
'odd' | 'even' | null | |
Applies a background to either even or odd rows. | ||
string | (new () => any) | FunctionalComponent | 'div' | |
Specify a custom tag used on the root element. | ||
string
| undefined | |
Specify a theme for this component and all of its children. | ||
(a: any, b: any) => boolean | undefined | |
Apply a custom comparison algorithm to compare model-value and values contains in the items prop. | ||
string | number | undefined | |
Sets the width for the component. | ||
name | type | |
|---|---|---|
[any] | ||
Emits when the expanded prop is updated. | ||
[any] | ||
Emits when the group-by prop is updated. | ||
[unknown] | ||
Emits when the component’s model changes. | ||
[any] | ||
Emits when pagination related properties (page, itemsPerPage, sortBy, groupBy, search) is updated. | ||
[any] | ||
Emits when the sortBy prop is updated. | ||
Slot for a specific header. See | ||
Slot for custom rendering of a row cell. | ||
Slot to add content below the table. | ||
Slot to add content above the table. | ||
Slot to add content below the table. | ||
Slot to replace the default rendering of the | ||
Slot for custom rendering of a group. | ||
Slot for custom rendering of a header cell with the select checkbox. | ||
Slot for custom rendering of an expanded row. | ||
Slot for custom rendering of a group header. | ||
Slot for custom rendering of a group summary. | ||
Slot for the expand button in the header. | ||
Slot for the select-all checkbox in the header. | ||
Slot to replace the default rendering of the | ||
Slot to replace the default rendering of a row. | ||
Slot to replace the default | ||
Slot to replace the default checkbox used when selecting rows. | ||
Slot for custom loader (displayed when loading prop is equal to true). | ||
Defines content for when | ||
Defines content for when no items are provided. | ||
Slot to replace the default table | ||
Slot to replace the default table | ||
Slot to replace the default table | ||
Slot to add content above the table | ||
Trigger updating the currently rendered items based on scroll position. | ||
Scrolls to the item at a given index. | ||