Skip to content

GhostDataTable reference ​

Package: @ghostvue/themes. Status: experimental (stability policy).

Theme shell for GhostDataTable with native table semantics and the headless interaction contract.

Generated from the component manifest. Edit the manifest or Vue source, then rebuild the docs.

All component references

Props ​

NameTypeDefaultRequiredDescription
size'sm' | 'md'"md"NoCell and control density.
variant'plain' | 'card'"plain"NoContainer surface.
stickyHeaderbooleanfalseNoPins column headings to the block start of the nearest scroll container.

Emits ​

None declared.

Models ​

None declared.

Slots ​

None declared.

Exposed members ​

NameTypeDescription
elementHTMLElement | nullThe themed container after mount.

Parts and data attributes ​

AttributeValueDescription
data-partrootThe container that scopes DataTable recipes.

CSS variables ​

None declared.

Accessibility ​

Role: table. APG pattern: https://www.w3.org/WAI/ARIA/apg/patterns/table/.

Required ARIA attributes: none.

Keyboard ​

None declared.

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 ​

data-table/themed-invoices ​

Example source

Review invoices

A themed card preset with search, sortable columns, currency amounts, past-due invoices selected for a Mark paid action, a detail row, a Clear search recovery for no results, and a pagination footer.

2 selected
Details
INV-1048Northstar StudioOpen$2,480.00
INV-1047Fieldwork LabsPast due$3,725.00
INV-1047 for Fieldwork Labs is due Nov 15, 2026. Billing contact: billing@fieldwork.example.
INV-1046Canopy DigitalPaid$1,560.00
INV-1045Harbor & Co.Past due$980.50

data-table/toolbar-date-range ​

Example source

Filter by issue date

A themed preset with start and end date pickers in the toolbarEnd slot: the issue-date column's filterFn matches inclusive, optionally open-ended bounds, Apply commits the draft through setColumnFilter, and clearing both dates commits undefined to restore every row.

Issue date
YYYY-MM-DD
YYYY-MM-DD
INV-2058Juniper Health$645.75
INV-2057Orbit Analytics$4,200.00
INV-2056Lumen Works$1,260.00
INV-2055Summit Supply$2,140.00
INV-2054Harbor & Co.$980.50
INV-2053Canopy Digital$1,560.00
INV-2052Fieldwork Labs$3,725.00
INV-2051Northstar Studio$2,480.00

data-table/multi-sort-invoices ​

Example source

Sort by several columns

A themed preset with opt-in multi-column sorting: every activation adds or cycles a column without a modifier key, rank badges and descriptions show each column's priority, and a visible Clear sorting button calls clearSorting().

INV-1048Northstar StudioOpen$2,480.00
INV-1045Harbor & PineOpen$640.00
INV-1044Fieldwork LabsPaid$3,725.00
INV-1046Canopy DigitalPaid$1,260.00
INV-1047Fieldwork LabsPast due$3,725.00
INV-1043Northstar StudioPast due$910.00
Sorted ascending, priority 1 of 2Sorted descending, priority 2 of 2

data-table/empty-clear-filters ​

Example source

Clear filters from the empty state

A themed preset that opts into the emptyDescription and emptyActions layout slots: when the search and a Past due only filter match nothing, the empty row explains which filters are active and offers Clear filters, which restores every row and moves focus to the search field.

No matching invoices

No invoices match “Lumen” and past due only. Clear the filters to see all 5 invoices.

data-table/workload-by-period ​

Example source

Drill into workload by period

A themed preset that summarizes each person's known hours, unestimated assignments, availability and capacity rating for one planning period, with an Unassigned work row. Expanding a row lists its assignments; Edit opens the app's dialog editor, and a confirmed reassignment moves the hours and the assignment to the new owner.

Team workload

Known hours against availability for Dec 1–12.

AssignmentsOwnerKnown hoursUnestimatedAvailableCapacity
Maya14 hNone12 hOver by 2 h
Sam6 hNone16 hHas room
Priya10 h1 unestimated12 hNear limit
Unassigned work4 h1 unestimated—

data-table/select-all-matching ​

Example source

Select every matching invoice

A themed server table with query-wide selection: select a page, extend it to all 2,300 unpaid invoices, uncheck rows on any page, and send the filter plus the excluded ids to a Mark sent action that the server resolves. Disputed invoices show a rejected action that keeps the selection.

InvoiceCustomerStatusAmount

No invoices