BlogPlaygroundOne

VDataTableRow API


Props
name
type
default
  | Record<string, any>
  | ((
      data: Pick<
        ItemKeySlot<unknown>,
        'value' | 'item' | 'column' | 'index' | 'internalItem'
      >,
    ) => Record<string, any>)
undefined

Props to be applied to the cell.

  | string
  | (string | [string, number])[]
  | (new () => any)
  | FunctionalComponent
'$collapse'

Icon to display when the expandable row is expanded.

string
undefined

Applies specified color to the control - supports utility colors with or without text- prefix (for example success, purple or text-purple) or CSS color (#033 or rgba(255, 0, 0, 0.5)). Find a list of built-in classes on the colors page.

'default' | 'comfortable' | 'compact'
'default'

Adjusts the vertical height used by the component.

  | string
  | (string | [string, number])[]
  | (new () => any)
  | FunctionalComponent
'$expand'

Icon to display when the expandable row is collapsed.

number
undefined

Row index.

unknown
undefined

Data (key, index and column values) of the displayed item.

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.

Events
name
type
[MouseEvent]

Event that is emitted when the component is clicked.

[MouseEvent]

The event emitted when the user clicks the context menu button.

[MouseEvent]

The event emitted when the user double clicks the row.

Slots
{ column: InternalDataTableHeader selectAll: (value: boolean) => void isSorted: (column: InternalDataTableHeader) => boolean toggleSort: ( column: InternalDataTableHeader, event: KeyboardEvent | PointerEvent, mandatory: boolean, ) => void sortBy: SortItem[] someSelected: boolean allSelected: boolean getSortIcon: ( column: InternalDataTableHeader, ) => | string | (string | [string, number])[] | (new () => any) | FunctionalComponent }
{ column: InternalDataTableHeader selectAll: (value: boolean) => void isSorted: (column: InternalDataTableHeader) => boolean toggleSort: ( column: InternalDataTableHeader, event: KeyboardEvent | PointerEvent, mandatory: boolean, ) => void sortBy: SortItem[] someSelected: boolean allSelected: boolean getSortIcon: ( column: InternalDataTableHeader, ) => | string | (string | [string, number])[] | (new () => any) | FunctionalComponent }
{ column: InternalDataTableHeader selectAll: (value: boolean) => void isSorted: (column: InternalDataTableHeader) => boolean toggleSort: ( column: InternalDataTableHeader, event: KeyboardEvent | PointerEvent, mandatory: boolean, ) => void sortBy: SortItem[] someSelected: boolean allSelected: boolean getSortIcon: ( column: InternalDataTableHeader, ) => | string | (string | [string, number])[] | (new () => any) | FunctionalComponent }
Omit<ItemKeySlot<unknown>, 'value'> & { props: Record<string, unknown> }
Omit<ItemKeySlot<unknown>, 'value'> & { props: Record<string, unknown> }

Slot for custom rendering of a header cell.

Slot for custom rendering of a row cell.

Slot to replace the default v-icon used when expanding header.

Slot to replace the default v-checkbox-btn in header.

Slot for the expand button in the row.

Slot for the select checkbox in the row.