Skip to content

VDataGridCell

Props

NameTypeDescription
cell-typeEnum:
default
columnheader
rowheader
The type of cell
column-definitionEnum:
{sortDirection?: null
none
ascending
descending
other; sortable?: false
true; columnDataKey: string; gridColumn?: string; title?: string; headerCellTemplate?: @microsoft/fast-element#ViewTemplate<any, any>; headerCellInternalFocusQueue?: false
true; headerCellFocusTargetCallback?: ((cell: @vonage/vivid#VwcDataGridCellElement) => HTMLElement); cellTemplate?: @microsoft/fast-element#ViewTemplate<any, any>; cellInternalFocusQueue?: false | true; cellFocusTargetCallback?: ((cell: @vonage/vivid#VwcDataGridCellElement) => HTMLElement); isRowHeader?: false | true}
The base data for the column
grid-columnstringThe column index of the cell. This will be applied to the css grid-column-index value applied to the cell
row-dataobjectThe base data for the parent row
selectedbooleanReflects selected state of the row
sort-directionEnum:
none
ascending
descending
other
Sets the sorting direction.

Events

NameEvent TypeDescription
cell-clickCustomEvent<{cell: HTMLElement, row: HTMLElement, isHeaderCell: boolean, columnDataKey: string}>Event that fires when a cell is clicked
cell-focusedCustomEvent<HTMLElement>Fires a custom 'cell-focused' event when focus is on the cell or its contents
sortCustomEvent<{columnDataKey: string, ariaSort: string | null, sortDirection: string | null}>Event that fires when a sortable column header is clicked

Slots

NameDescription
action-itemsAdd action items to the cell using this slot.
defaultDefault slot.