Skip to content
On this page

VDataGrid

Props

NameTypeDescription
aria-currentEnum:
page
step
location
date
time
true
false
Indicates the element that represents the current item within a container or set of related elements.
no-tabbingbooleanWhen true the component will not add itself to the tab queue. Default is false.
generate-headerEnum:
none
default
sticky
Whether the grid should automatically generate a header row and its type
grid-template-columnsstringString that gets applied to the the css gridTemplateColumns attribute of child rows
selection-modeEnum:
none
single-row
multi-row
single-cell
multi-cell
Indicates the selection mode.
rowsDataany[]Array of objects representing the rows of the grid.

Events

NameEvent TypeDescription
clickMouseEventFires when a pointing device button (such as a mouse's primary mouse button) is both pressed and released while the pointer is located inside the element.
focusFocusEventFires when the element receives focus.
blurFocusEventFires when the element loses focus.
keydownKeyboardEventFires when a key is pressed.
keyupKeyboardEventFires when a key is released.
inputEventFires when the value of an element has been changed.
cell-clickCustomEvent<{cell: HTMLElement, row: HTMLElement, isHeaderCell: boolean, columnDataKey: string}>Event that fires when a cell is clicked

Slots

NameDescription
defaultDefault slot.

Methods

NameTypeDescription
selectionModeChanged`(oldValue: 'none''single-row'