Skip to content

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.

All component references

Props ​

NameTypeDefaultRequiredDescription
columnsTColumns—NoColumns 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.
containHorizontalboolean—NoWhen true, wraps the table in a scroll container for explicit horizontal overflow. The table itself never receives implicit overflow.
scrollLabelstring—NoAccessible 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"NoLocalized 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"NoLocalized 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"NoLocalized 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 ​

KeyActionAutomated browser test
TabMoves between the header sort buttons and any focusable cell content in DOM order. No grid or roving cell focus.Not reviewed
EnterActivates a focused sort button.Not reviewed
SpaceActivates 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.

CategoryStatusEvidence
Automated keyboardNot reviewedNo declared key is mapped to a browser test yet.
Manual interactionNot reviewedNo review recorded.
Assistive technologyNot reviewedNo review recorded.

Examples ​

None declared.