Data display / Data table

Data display

Data table

The table with its working parts in one frame: title and count, tools, search, sortable headers, selection with a bulk bar, frozen columns and a pager.

import { EcoDataTable } from "vue-ecosphere"

Toolbar, search, selection and frozen columns

Search, sort, check rows to see the selection bar, and delete them. Scroll sideways: the name and action columns stay.

Open requests5
Open requests
StatusDestinationRegionMonthly costActions
Access reviewContractor groupGrace KimPendingPrimary clustereu-west-112 Nov 202612d14$1,240.00
Cluster failover drillQuarterly testAdam WoodsBlockedPrimary clusterus-east-23 Nov 202621d32$4,980.00
Deploy requestRelease 4.12Daniel OkaforPendingPrimary clustereu-west-121 Nov 20263d12$860.00
Key rotationPrimary clusterFelipe AlfaroPendingPrimary clusterap-south-118 Nov 20266d31$2,115.50
Replica resizeAnalytics clusterElena PetrovaPendingAnalytics warehouseeu-central-120 Nov 20264d18$1,602.00

1–5 of 5

Expandable rows

Open a row with its chevron to see the rest of its record. Rows still select, sort and pin as usual; the detail row stays under its row.

Open requests7
Open requests
DetailsStatus
Access reviewContractor groupGrace KimPending12d
Cluster failover drillQuarterly testAdam WoodsBlocked21d
Deploy requestRelease 4.12Daniel OkaforPending3d
Key rotationPrimary clusterFelipe AlfaroPending6d
Destination
Primary cluster
Region
ap-south-1
Created
18 Nov 2026
Seats
31
Monthly cost
$2,115.50
Replica resizeAnalytics clusterElena PetrovaPending4d
Seat increase40 → 55 seatsKiara CasmerBlocked9d
Usage exportMonthly reportHana SatoIn review2d

Open: ["4"]

Loading and error

Keep the header while a page loads. Never show an empty table for an error: say what happened and offer Retry.

Open requests
Open requests
StatusDestination
Open requests

API

NameTypeDefaultDescription
title / countstring / string | number—dtable__t in the display face, and the total beside it.
labelstring—aria-label of the frame (defaults to title).
columns / rows / rowKey——Passed to EcoTable; #cell-<key> and #head-<key> slots are forwarded.
selectable + v-model:selected(string | number)[]—When rows are checked the top bar switches to is-sel: “N selected”, #actions, and Clear selection.
v-model:sort / manualSortEcoTableSort | null / boolean—Sorting, internal unless manualSort (server-side).
sticky / nowrap / rowHeaderbooleantrueThe frame’s defaults: sticky header, one line per row, first column as row header.
pinFirst / pinLast / compactbooleanfalseFreeze the name (and selection) column and the action column; compact rows.
maxHeightstring—Height of dtable__scroll (stylesheet default 420px). is-scrolled is set while scrolled sideways.
loadingbooleanfalseHeader stays, skeleton rows in the body, aria-busy.
error / errorTitlestring— / "Rows did not load."A notice with Retry (@retry) instead of the table. #error-actions overrides the buttons.
#tools / #bar / #footer——Toolbar end, search and filter bar (dtable__bar), and pager (dtable__foot).
#actions{ selected, clear }—Bulk actions in the selection bar. One filled button; a destructive one names the count.
#empty——EmptyState markup in the frame when there are no rows.
expandable + v-model:expandedboolean | (row) => boolean / (string | number)[]false / []Rows that open a full-width detail row (#expanded) under them, and the keys of the open ones. Adds a chevron toggle column after the selection column; frozen columns stay aligned.
#expanded{ row, index }—Content of an open row's detail row: a row's secondary facts, not child rows (use EcoTreeTable for a hierarchy).
expandLabel / collapseLabelstring | (row) => string"Show details for" / "Hide details for"The toggle's name: a prefix before rowLabel(row), or the whole name from the row (for word orders a prefix cannot give).
expandColumnLabelstring"Details"Visually hidden header of the toggle column.
@expand / @collapse(row)—A row's detail row opened or closed.
default slot——Frame any other table (e.g. EcoTreeTable) in dtable__scroll instead.