DxVirtualTable Plugin Reference
A plugin that renders a scrollable table instead of a static one. It contains the DxVirtualTable.components.DxRow and DxVirtualTable.components.DxCell components that are used to customize virtual table rows and columns and can be extended by other plugins.
Import
Use the following statement to import the plugin with embedded theme components:
import { DxVirtualTable } from '@devexpress/dx-vue-grid-bootstrap4';
User Reference
Dependencies
none
Properties
Interfaces
DxVirtualTable.ColumnExtension
Describes additional column properties that the plugin can handle.
Field |
Type |
Description |
columnName |
string |
The name of the column to extend. |
width? |
number |
The table column width in pixels. |
align? |
‘left’ | ‘right’ | ‘center’ |
The table column alignment. |
wordWrapEnabled? |
boolean |
Specifies whether word wrap is enabled in column’s cells. |
TableRow
Describes properties of a table row that the Table plugin renders.
Field |
Type |
Description |
key |
string |
A unique table row identifier. |
type |
string |
The table row type. Defines which cell template is used to render the row. |
rowId? |
number | string |
The associated row’s ID. |
row? |
any |
The associated row. |
height? |
number |
The table row height. |
TableColumn
Describes properties of a table column that the Table plugin renders.
Field |
Type |
Description |
key |
string |
A unique table column identifier. |
type |
string |
The table column type. Defines which cell template is used to render the column. |
column? |
Column |
The associated user column. |
width? |
number |
The column width. |
align? |
‘left’ | ‘right’ | ‘center’ |
The column alignment. |
Component Types
DxVirtualTable.DxTable
Slots
Field |
Description |
default |
The default Vue slot. |
DxVirtualTable.DxHead
Slots
Field |
Description |
default |
The default Vue slot. |
DxVirtualTable.DxBody
Slots
Field |
Description |
default |
The default Vue slot. |
DxVirtualTable.DxContainer
Slots
Field |
Description |
default |
The default Vue slot. |
DxVirtualTable.DxCell
Props
Field |
Type |
Description |
tableRow |
TableRow |
A table row. |
tableColumn |
TableColumn |
A table column. |
colSpan? |
number |
The count of columns that the root cell element spans. |
rowSpan? |
number |
The count of rows that the root cell element spans. |
value |
any |
A value to be rendered within the cell. |
row |
any |
The cell’s row. |
column |
Column |
The cell’s column. |
Slots
Field |
Description |
default |
The default Vue slot. |
DxVirtualTable.DxNoDataCell
Props
Field |
Type |
Description |
tableRow |
TableRow |
A table row. |
tableColumn |
TableColumn |
A table column. |
colSpan? |
number |
The count of columns that the root cell element spans. |
rowSpan? |
number |
The count of rows that the root cell element spans. |
getMessage |
(messageKey: string) => string |
Returns the text displayed in a cell when a table is empty. |
DxVirtualTable.DxRow
Props
Field |
Type |
Description |
tableRow |
TableRow |
A table row. |
row |
any |
A row. |
Slots
Field |
Description |
default |
The default Vue slot. |
DxVirtualTable.DxNoDataRow
Props
Field |
Type |
Description |
tableRow |
TableRow |
A table row. |
Slots
Field |
Description |
default |
The default Vue slot. |
DxVirtualTable.DxStubRow
Props
Field |
Type |
Description |
tableRow |
TableRow |
A table row. |
Slots
Field |
Description |
default |
The default Vue slot. |
DxVirtualTable.DxStubCell
Props
Field |
Type |
Description |
tableRow |
TableRow |
A table row. |
tableColumn |
TableColumn |
A table column. |
colSpan? |
number |
The count of columns that the root cell element spans. |
rowSpan? |
number |
The count of rows that the root cell element spans. |
Props
Field |
Type |
Description |
tableRow |
TableRow |
A table row. |
tableColumn |
TableColumn |
A table column. |
colSpan? |
number |
The count of columns that the root cell element spans. |
rowSpan? |
number |
The count of rows that the root cell element spans. |
Localization Messages
Field |
Type |
Default |
Description |
noData? |
string |
‘No data’ |
The text shown when the Grid does not contain data. |
Plugin Components
Plugin Developer Reference
Imports
Name |
Plugin |
Type |
Description |
rows |
Getter |
Array<any> |
Rows to be rendered by the table view. |
columns |
Getter |
Array<Column> |
Columns to be rendered by the table view. |
getRowId |
Getter |
(row: any) => number | string |
A function used to get a unique row identifier. |
getCellValue |
Getter |
(row: any, columnName: string) => any |
A function used to get a cell’s value. |
Exports
Name |
Plugin |
Type |
Description |
tableHeaderRows |
Getter |
Array<TableRow> |
Header rows to be rendered. |
tableBodyRows |
Getter |
Array<TableRow> |
Body rows to be rendered. |
tableColumns |
Getter |
Array<TableColumn> |
Columns to be rendered. |
table |
Template |
object? |
A template that renders the table. |
tableCell |
Template |
object? |
A template that renders a table cell. |
tableRow |
Template |
object? |
A template that renders a table row. |