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
| Status | Destination | Region | Monthly cost | Actions | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Access reviewContractor group | Grace Kim | Pending | Primary cluster | eu-west-1 | 12 Nov 2026 | 12d | 14 | $1,240.00 | ||
| Cluster failover drillQuarterly test | Adam Woods | Blocked | Primary cluster | us-east-2 | 3 Nov 2026 | 21d | 32 | $4,980.00 | ||
| Deploy requestRelease 4.12 | Daniel Okafor | Pending | Primary cluster | eu-west-1 | 21 Nov 2026 | 3d | 12 | $860.00 | ||
| Key rotationPrimary cluster | Felipe Alfaro | Pending | Primary cluster | ap-south-1 | 18 Nov 2026 | 6d | 31 | $2,115.50 | ||
| Replica resizeAnalytics cluster | Elena Petrova | Pending | Analytics warehouse | eu-central-1 | 20 Nov 2026 | 4d | 18 | $1,602.00 |
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
| Details | Status | ||||
|---|---|---|---|---|---|
| Access reviewContractor group | Grace Kim | Pending | 12d | ||
| Cluster failover drillQuarterly test | Adam Woods | Blocked | 21d | ||
| Deploy requestRelease 4.12 | Daniel Okafor | Pending | 3d | ||
| Key rotationPrimary cluster | Felipe Alfaro | Pending | 6d | ||
| |||||
| Replica resizeAnalytics cluster | Elena Petrova | Pending | 4d | ||
| Seat increase40 → 55 seats | Kiara Casmer | Blocked | 9d | ||
| Usage exportMonthly report | Hana Sato | In review | 2d | ||
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
| Status | Destination |
|---|
Open requests
Rows did not load. The server took too long to sort by Monthly cost. Clearing the sort usually helps.
API
| Name | Type | Default | Description |
|---|---|---|---|
title / count | string / string | number | — | dtable__t in the display face, and the total beside it. |
label | string | — | 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 / manualSort | EcoTableSort | null / boolean | — | Sorting, internal unless manualSort (server-side). |
sticky / nowrap / rowHeader | boolean | true | The frame’s defaults: sticky header, one line per row, first column as row header. |
pinFirst / pinLast / compact | boolean | false | Freeze the name (and selection) column and the action column; compact rows. |
maxHeight | string | — | Height of dtable__scroll (stylesheet default 420px). is-scrolled is set while scrolled sideways. |
loading | boolean | false | Header stays, skeleton rows in the body, aria-busy. |
error / errorTitle | string | — / "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:expanded | boolean | (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 / collapseLabel | string | (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). |
expandColumnLabel | string | "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. |