GhostDataTableTable reference
Package: @ghostvue/vue. Status: experimental (stability policy).
Default renderer for GhostDataTable. Place it inside the root to render a native GhostTable with a header row, sort buttons for sortable columns, and one body row per rendered row. Each column id is an optional cell slot, #<columnId>="{ row, rowId, rowIndex, column, value, getValue }"; with a columns array from defineDataTableColumns, value is typed per column.
Generated from the component manifest. Edit the manifest or Vue source, then rebuild the docs.
Props
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
columns | TColumns | — | No | Columns to render, in order, matched to the parent `GhostDataTable` columns by `id` (ids the parent does not have are skipped). Defaults to every parent column. Pass the same array you give `GhostDataTable` to type the `#<columnId>` slots. |
containHorizontal | boolean | — | No | When true, wraps the table in a scroll container for explicit horizontal overflow. The table itself never receives implicit overflow. |
scrollLabel | string | — | No | Accessible name for the horizontal scroll region. When omitted and a {@link GhostTableCaption } is rendered, the scroll region uses `aria-labelledby` on the caption id. |
selectionAnnouncementLabel | ((context: DataTableSelectionAnnouncementContext) => string) | "defaultSelectionAnnouncementLabel" | No | Localized polite announcement after a selection action, while the parent has `enableQuerySelection` (rendered outside the table). The default reads "25 rows selected. All 2,300 matching rows can be selected.", "All 2,300 matching rows selected.", "Selection cleared.", or "Selection cleared because the filter changed." |
sortAnnouncementLabel | ((entries: readonly DataTableSortAnnouncementEntry[]) => string) | "defaultSortAnnouncementLabel" | No | Localized polite announcement after a user changes the sort, while the parent has `enableMultiSort`. Receives the new sort in priority order. |
sortDescriptionLabel | ((context: DataTableSortDescriptionContext) => string) | "defaultSortDescriptionLabel" | No | Localized rank description for each sort button while more than one column is sorted (`aria-describedby`, rendered outside the table). |
Emits
None declared.
Models
None declared.
Slots
None declared.
Exposed members
None declared.
Parts and data attributes
None declared.
CSS variables
None declared.
Accessibility
Role: table. APG pattern: https://www.w3.org/WAI/ARIA/apg/patterns/table/.
Required ARIA attributes: none.
Keyboard
| Key | Action | Automated browser test |
|---|---|---|
Tab | Moves between the header sort buttons and any focusable cell content in DOM order. No grid or roving cell focus. | Not reviewed |
Enter | Activates a focused sort button. | Not reviewed |
Space | Activates a focused sort button. | Not reviewed |
Verification
Each category is reviewed separately. Automated keyboard and axe results do not attest manual or assistive-technology review.
| Category | Status | Evidence |
|---|---|---|
| Automated keyboard | Not reviewed | No declared key is mapped to a browser test yet. |
| Manual interaction | Not reviewed | No review recorded. |
| Assistive technology | Not reviewed | No review recorded. |
Examples
None declared.