Table
A set of composable components that work together in the same way as native HTML table elements.
import { VTable, VTableHead, VTableBody, VTableRow, VTableHeaderCell, VTableCell } from '@vonage/vivid-api-vue';
<VTableHeaderCell>Product</VTableHeaderCell>
<VTableHeaderCell>Type</VTableHeaderCell>
<VTableHeaderCell>Threshold</VTableHeaderCell>
<VTableCell>SMS</VTableCell>
<VTableCell>Volumetric Changes</VTableCell>
<VTableCell>1000</VTableCell>
<VTableCell>Voice</VTableCell>
<VTableCell>Volumetric Changes</VTableCell>
<VTableCell>5000</VTableCell>
import { VTable, VTableHead, VTableBody, VTableRow, VTableHeaderCell, VTableCell } from '@vonage/vivid-api-vue';
import { registerTable } from '@vonage/vivid-api';
registerTable('your-prefix');
Table Head, Table Body, Table Row, Table Header Cell, and Table Cell sub-components are registered automatically in the same function.
import { registerTable } from '@vonage/vivid-api';
registerTable('your-prefix');
<your-prefix-table-header-cell>Product</your-prefix-table-header-cell>
<your-prefix-table-header-cell>Type</your-prefix-table-header-cell>
<your-prefix-table-header-cell>Threshold</your-prefix-table-header-cell>
</your-prefix-table-head>
<your-prefix-table-cell>SMS</your-prefix-table-cell>
<your-prefix-table-cell>Volumetric Changes</your-prefix-table-cell>
<your-prefix-table-cell>1000</your-prefix-table-cell>
<your-prefix-table-cell>Voice</your-prefix-table-cell>
<your-prefix-table-cell>Volumetric Changes</your-prefix-table-cell>
<your-prefix-table-cell>5000</your-prefix-table-cell>
</your-prefix-table-body>
| Name | Description |
|---|
| default | Default slot. |
| Name | Description |
|---|
| default | Default slot. |
| Name | Description |
|---|
| default | Default slot. |
| Name | Description |
|---|
| default | Default slot. |
| Name | Type | Description |
|---|
| cell-focused | CustomEvent<HTMLElement> | Fires when the cell or its contents receive focus |
| Name | Type | Description |
|---|
| cell-focused | CustomEvent<HTMLElement> | Fires when the cell or its contents receive focus |
| Name | Description |
|---|
| default | Default slot. |
| Name | Description |
|---|
| default | Default slot. |
| Name | Type | Description |
|---|
| cell-focused | CustomEvent<HTMLElement> | Fires when the cell or its contents receive focus |
| Name | Type | Description |
|---|
| cell-focused | CustomEvent<HTMLElement> | Fires when the cell or its contents receive focus |
| Name | Description |
|---|
| default | Default slot. |
| Name | Description |
|---|
| default | Default slot. |
| Name | Description |
|---|
| default | Default slot. |
| Name | Description |
|---|
| default | Default slot. |
| Name | Description |
|---|
| default | Default slot. |
| Name | Description |
|---|
| default | Default slot. |
| Property | Type | Default | Description |
|---|
| direction | 'none' | 'desc' | 'asc' | | Current direction of the sorting |
| Property | Type | Default | Description |
|---|
| direction | 'none' | 'desc' | 'asc' | | Current direction of the sorting |
| Name | Description |
|---|
| default | Default slot. |
| Name | Description |
|---|
| default | Default slot. |
| Name | Type | Description |
|---|
| sort | CustomEvent<undefined> | Emitted when sorting button is clicked. |
| Name | Type | Description |
|---|
| sort | CustomEvent<undefined> | Emitted when sorting button is clicked. |
| Name | Params | Returns | Description |
|---|
| toggleSort | | void | |