Component

Vue Data Grid with Filtering

<DomDataGrid>

A dense spreadsheet-like grid for database records, with typed column filters, sorting, row selection, and a server-query friendly API. We talk about databases, rendering pipelines, virtual DOMs, and scalable app architecture. But really, they just want Excel.

Quick start

Use DomDataGrid now

Choose the installation path that suits this stage

Use npm for the fastest working version. Copy the source when you want DomDataGrid to become part of your codebase: yours to edit, adapt, and maintain.

View install options

Demo

Database-style account table

Column filters use typed controls: date columns open a date range, number columns use min/max, select columns use checklist filters, and applied filters are visible in both the header and toolbar.

Customer accounts

15 of 24 accounts

Status: Active, TrialRenewal: 2026-07-01 to 2026-09-30
ABCDEFGHIJKL
#

Filter Account

Filter Status

Values

Filter Plan

Values

Filter Owner

Filter Seats

Filter ARR

Filter Health

Values

Filter Region

Values

Filter Renewal

Filter Active users

Filter Verified

Filter Updated

1Anchor CloudActiveEnterpriseSofia Jensen264£310,000StrongNA31 Jul 2026240Yes11 Jun 2026
2Orchid HealthActiveEnterpriseLaura Chen232£268,000StrongNA22 Sept 2026211Yes11 Jun 2026
3Forge RoboticsActiveEnterprisePriya Singh188£224,500StrongAPAC04 Sept 2026169Yes10 Jun 2026
4Mercury MediaActiveEnterpriseCaleb Stone176£201,300StrongNA09 Jul 2026151Yes09 Jun 2026
5Northstar AnalyticsActiveEnterpriseAmelia Hart142£184,000StrongEMEA19 Aug 2026118Yes10 Jun 2026
6Signal HarborActiveScaleNora Ellis96£112,900StrongEMEA02 Aug 202688Yes07 Jun 2026
7Atlas FinanceActiveScaleRavi Patel84£96,500WatchNA28 Jul 202662Yes08 Jun 2026
8Sable SecurityActiveScaleElena Rossi72£88,900StrongEMEA29 Sept 202670Yes02 Jun 2026
9Violet ManufacturingTrialScaleKai Foster58£65,400WatchAPAC24 Aug 202643No01 Jun 2026
10Summit GroceryActiveGrowthMaeve Walsh36£41,800StrongNA16 Sept 202634Yes06 Jun 2026
11Bluejay TravelTrialGrowthTara Lewis22£24,800WatchLATAM19 Jul 202617No04 Jun 2026
12Brightwell StudioTrialGrowthMina Okafor18£21,400StrongEMEA14 Sept 202616No09 Jun 2026
13Mosaic CivicActiveStarterGeorge White16£15,800StrongEMEA11 Sept 202615Yes10 Jun 2026
14Kite EducationTrialStarterOwen Price14£11,800StrongEMEA31 Aug 202613No06 Jun 2026
15Pioneer RetailTrialStarterMiles Brooks9£7,800WatchNA12 Jul 20266No03 Jun 2026
12 columns2 selected

Resource API shape

The grid can filter locally today, but the same query-change payload can be sent to a resource endpoint for SQL-backed search, where, order, and pagination later.

{
  "search": "",
  "filters": {
    "status": {
      "type": "select",
      "values": [
        "active",
        "trial"
      ]
    },
    "renewalDate": {
      "type": "date",
      "start": "2026-07-01",
      "end": "2026-09-30"
    }
  },
  "sort": {
    "key": "arr",
    "direction": "desc"
  }
}

Large memory

Virtual rows for in-memory data

Use virtualRows when a large local array is already in memory. The grid keeps the full 10,000-row data set available for client-side search, filters, and sort, while the isolated virtual row renderer mounts only the visible rows plus the configured buffer.

Usage events

10000 of 10000 events

ABCDEFGH
#

Filter Event

Filter Account

Filter Service

Values

Filter Status

Values

Filter Region

Values

Filter Requests

Filter Spend

Filter Updated

11Atlas Works 1Billing APIHealthyUK2,500£150.0001 Jan 2026
22Northstar Labs 1MailDelayedEU2,597£187.0002 Feb 2026
33Pioneer Health 1Billing APIQueuedUS2,694£224.0003 Mar 2026
44Evergreen Finance 1MailHealthyCA2,791£261.0004 Apr 2026
55Lunar Retail 1Billing APIHealthyAU2,888£298.0005 May 2026
66Cobalt Systems 1MailFailedUK2,985£335.0006 Jun 2026
77Atlas Works 2Billing APIHealthyEU3,082£372.0007 Jan 2026
88Northstar Labs 2MailDelayedUS3,179£409.0008 Feb 2026
99Pioneer Health 2Billing APIQueuedCA3,276£446.0009 Mar 2026
1010Evergreen Finance 2MailHealthyAU3,373£483.0010 Apr 2026
1111Lunar Retail 2Billing APIHealthyUK3,470£520.0011 May 2026
1212Cobalt Systems 2MailFailedEU3,567£557.0012 Jun 2026
1313Atlas Works 3Billing APIHealthyUS3,664£594.0013 Jan 2026
1414Northstar Labs 3MailDelayedCA3,761£631.0014 Feb 2026
1515Pioneer Health 3Billing APIQueuedAU3,858£668.0015 Mar 2026
1616Evergreen Finance 3MailHealthyUK3,955£705.0016 Apr 2026
1717Lunar Retail 3Billing APIHealthyEU4,052£742.0017 May 2026
1818Cobalt Systems 3MailFailedUS4,149£779.0018 Jun 2026
1919Atlas Works 4Billing APIHealthyCA4,246£816.0019 Jan 2026
2020Northstar Labs 4MailDelayedAU4,343£853.0020 Feb 2026
2121Pioneer Health 4Billing APIQueuedUK4,440£890.0021 Mar 2026
2222Evergreen Finance 4MailHealthyEU4,537£927.0022 Apr 2026
2323Lunar Retail 4Billing APIHealthyUS4,634£964.0023 May 2026
2424Cobalt Systems 4MailFailedCA4,731£1,00124 Jun 2026
2525Atlas Works 5Billing APIHealthyAU4,828£1,03825 Jan 2026
2626Northstar Labs 5MailDelayedUK4,925£1,07526 Feb 2026
2727Pioneer Health 5Billing APIQueuedEU5,022£1,11227 Mar 2026
2828Evergreen Finance 5MailHealthyUS5,119£1,14928 Apr 2026
2929Lunar Retail 5Billing APIHealthyCA5,216£1,18601 May 2026
3030Cobalt Systems 5MailFailedAU5,313£1,22302 Jun 2026
3131Atlas Works 6Billing APIHealthyUK5,410£1,26003 Jan 2026
3232Northstar Labs 6MailDelayedEU5,507£1,29704 Feb 2026
3333Pioneer Health 6Billing APIQueuedUS5,604£1,33405 Mar 2026
3434Evergreen Finance 6MailHealthyCA5,701£1,37106 Apr 2026
3535Lunar Retail 6Billing APIHealthyAU5,798£1,40807 May 2026
3636Cobalt Systems 6MailFailedUK5,895£1,44508 Jun 2026
3737Atlas Works 7Billing APIHealthyEU5,992£1,48209 Jan 2026
3838Northstar Labs 7MailDelayedUS6,089£1,51910 Feb 2026
3939Pioneer Health 7Billing APIQueuedCA6,186£1,55611 Mar 2026
4040Evergreen Finance 7MailHealthyAU6,283£1,59312 Apr 2026
4141Lunar Retail 7Billing APIHealthyUK6,380£1,63013 May 2026
4242Cobalt Systems 7MailFailedEU6,477£1,66714 Jun 2026
4343Atlas Works 8Billing APIHealthyUS6,574£1,70415 Jan 2026
4444Northstar Labs 8MailDelayedCA6,671£1,74116 Feb 2026
4545Pioneer Health 8Billing APIQueuedAU6,768£1,77817 Mar 2026
4646Evergreen Finance 8MailHealthyUK6,865£1,81518 Apr 2026
4747Lunar Retail 8Billing APIHealthyEU6,962£1,85219 May 2026
4848Cobalt Systems 8MailFailedUS7,059£1,88920 Jun 2026
4949Atlas Works 9Billing APIHealthyCA7,156£1,92621 Jan 2026
5050Northstar Labs 9MailDelayedAU7,253£1,96322 Feb 2026
5151Pioneer Health 9Billing APIQueuedUK7,350£2,00023 Mar 2026
8 columnsReady

Advanced sorting

Keyword table sort presets

Enable multiSort when header clicks should toggle ordered sort rules per column. Click Volume to add it, click Difficulty to add a second rule, and click a sorted header through asc, desc, and off.

Keyword opportunity sort

The selected preset sends ordered sort rules, so APIs can translate them to stable ORDER BY clauses.

Keyword research

10 of 10 keywords

ABCDEF
#

Filter Keyword

Filter Intent

Values

Filter Volume

Filter Difficulty

Filter Opportunity

Filter CPC

1vue data gridCommercial5,400283,942$5.40
2javascript spreadsheet componentComparison5,400433,132$7.10
3editable table vueCommercial2,900212,320$4.80
4tailwind data tableInformational8,100613,240$3.90
5server side data gridCommercial3,600352,376$8.20
6open source data grid vueComparison4,400243,388$4.60
7keyword clustering toolTransactional6,600483,498$6.70
8saas dashboard tableInformational1,900171,596$3.20
9best vue table libraryComparison5,400313,780$5.90
10crm data gridCommercial2,400191,968$9.40
6 columnsReady
{
  "search": "",
  "sort": {
    "key": "",
    "direction": "",
    "rules": []
  }
}

Remote data

Server pagination and forever scrolling

The same resource endpoint handles page-number navigation and cursor-based forever scrolling. The grid sends search, filters, and sort; pagination adds either page/pageSize or cursor/limit.

Remote customer resource

The grid asks for rows; the mock API applies search, filters, sort, and pagination.

Customers

0 of 0 customers from resource API

ABCDEFG
#

Filter Customer

Filter Status

Values

Filter Owner

Filter Region

Values

Filter Seats

Filter ARR

Filter Updated

No rows match the current filters.
7 columnsReady

Request

{
  "resource": "customers",
  "query": {
    "search": "",
    "filters": {},
    "sort": {
      "key": "updatedAt",
      "direction": "desc"
    }
  },
  "pagination": {
    "strategy": "page",
    "page": 1,
    "pageSize": 8
  }
}

Response

{
  "data": [],
  "pageInfo": {
    "strategy": "page",
    "page": 1,
    "pageSize": 8,
    "pageCount": 1,
    "total": 0,
    "hasNextPage": false,
    "hasPreviousPage": false,
    "nextCursor": ""
  },
  "meta": {
    "total": 0,
    "returned": 0
  }
}

Live data

SQL query log with duration ordering

A live developer query-log surface that treats the grid as a server-backed resource: new query rows stream into the buffer, search and typed filters update the resource query, and duration_ms desc exposes the slowest statements first.

Live query log 4-9/sec Last event 14:17:17

Buffered

140

P95 duration

1093 ms

Slow queries

37

Errors

10

SQL log

80 of 140 queries from resource API

#

Filter Database

Values

Filter Service

Values

Filter Verb

Values

Filter Table

Values

Filter Duration ms

Filter Lock wait

Filter Rows examined

Filter Status

Values

Filter Plan

Values

Filter Endpoint

Filter SQL statement

114:15:56BillingApp APIDELETEaccounts1611 ms0 ms518SlowNested loop/api/accountsdelete from accounts where organisation_id = ? and archived_at < now() - interval '90 days'
214:15:47Read replicaBilling syncUPDATEsessions1587 ms0 ms1,052SlowIndex scanstripe:updateupdate sessions set updated_at = now(), metadata = jsonb_set(metadata, ?, ?) where organisation_id = ? and id = ?
314:14:56Read replicaWorkerUPDATEorganisations1431 ms0 ms839SlowIndex scanjob:organisations:syncupdate organisations set updated_at = now(), metadata = jsonb_set(metadata, ?, ?) where organisation_id = ? and id = ?
414:11:45Primary writerBilling syncINSERTinvoices1183 ms0 ms826SlowNested loopstripe:insertinsert into invoices (organisation_id, payload, created_at) values (?, ?, now()) returning id
514:16:39AnalyticsReportingSELECTaccounts1164 ms600 ms219,063SlowSeq scan/reports/accountsselect * from accounts where organisation_id = ? and lower(search_text) like ? order by updated_at desc limit 100
614:10:44Read replicaWorkerSELECTorganisations1134 ms105 ms208,570SlowSeq scanjob:organisations:syncselect * from organisations where organisation_id = ? and lower(search_text) like ? order by updated_at desc limit 100
714:16:03Read replicaReportingSELECTjobs1098 ms0 ms668,897SlowSeq scan/reports/jobsselect * from jobs where organisation_id = ? and lower(search_text) like ? order by updated_at desc limit 100
814:15:10Read replicaReportingSELECTcontent_items1093 ms201 ms210,665SlowSeq scan/reports/content_itemsselect * from content_items where organisation_id = ? and lower(search_text) like ? order by updated_at desc limit 100
914:15:28BillingBilling syncSELECTaccounts1092 ms31 ms47,090SlowSeq scanstripe:selectselect * from accounts where organisation_id = ? and lower(search_text) like ? order by updated_at desc limit 100
1014:16:19Primary writerReportingSELECTorganisations1013 ms0 ms451,919SlowSeq scan/reports/organisationsselect * from organisations where organisation_id = ? and lower(search_text) like ? order by updated_at desc limit 100
1114:10:12Read replicaReportingINSERTaudit_events986 ms173 ms27ErrorIndex scan/reports/audit_eventsinsert into audit_events (organisation_id, payload, created_at) values (?, ?, now()) returning id
1214:08:14Read replicaWebhookSELECTorganisations820 ms0 ms357,379SlowSeq scan/webhooks/organisationsselect * from organisations where organisation_id = ? and lower(search_text) like ? order by updated_at desc limit 100
1314:09:04Primary writerReportingINSERTaccounts801 ms290 ms771SlowNested loop/reports/accountsinsert into accounts (organisation_id, payload, created_at) values (?, ?, now()) returning id
1414:16:44AnalyticsWebhookSELECTaudit_events799 ms0 ms291,587SlowSeq scan/webhooks/audit_eventsselect * from audit_events where organisation_id = ? and lower(search_text) like ? order by updated_at desc limit 100
1514:09:20BillingApp APISELECTcontent_items759 ms0 ms173,111SlowSeq scan/api/content_itemsselect * from content_items where organisation_id = ? and lower(search_text) like ? order by updated_at desc limit 100
1614:15:36AnalyticsReportingDELETEorganisations712 ms0 ms1,121SlowNested loop/reports/organisationsdelete from organisations where organisation_id = ? and archived_at < now() - interval '90 days'
1714:16:52BillingWebhookSELECTsessions707 ms131 ms22,808SlowNested loop/webhooks/sessionsselect * from sessions where organisation_id = ? and lower(search_text) like ? order by updated_at desc limit 100
1814:12:37BillingWorkerSELECTorganisations707 ms269 ms327,434SlowSeq scanjob:organisations:syncselect * from organisations where organisation_id = ? and lower(search_text) like ? order by updated_at desc limit 100
1914:13:29BillingReportingINSERTorganisations699 ms0 ms391SlowIndex scan/reports/organisationsinsert into organisations (organisation_id, payload, created_at) values (?, ?, now()) returning id
2014:16:44BillingApp APISELECTsessions518 ms0 ms230,239SlowSeq scan/api/sessionsselect * from sessions where organisation_id = ? and lower(search_text) like ? order by updated_at desc limit 100
2114:17:00AnalyticsReportingINSERTaudit_events467 ms0 ms715SlowNested loop/reports/audit_eventsinsert into audit_events (organisation_id, payload, created_at) values (?, ?, now()) returning id
2214:12:25Read replicaApp APIINSERTfeature_flags448 ms98 ms933SlowIndex scan/api/feature_flagsinsert into feature_flags (organisation_id, payload, created_at) values (?, ?, now()) returning id
2314:10:22AnalyticsBilling syncSELECTcontent_items415 ms0 ms376,649SlowSeq scanstripe:selectselect * from content_items where organisation_id = ? and lower(search_text) like ? order by updated_at desc limit 100
2414:16:57BillingReportingSELECTinvoices414 ms0 ms233,617SlowSeq scan/reports/invoicesselect * from invoices where organisation_id = ? and lower(search_text) like ? order by updated_at desc limit 100
2514:16:54Read replicaWebhookINSERTorganisations317 ms0 ms1,063SlowIndex scan/webhooks/organisationsinsert into organisations (organisation_id, payload, created_at) values (?, ?, now()) returning id
2614:17:15Read replicaApp APIDELETEaccounts307 ms0 ms681SlowIndex scan/api/accountsdelete from accounts where organisation_id = ? and archived_at < now() - interval '90 days'
2714:12:07Read replicaWebhookINSERTaudit_events289 ms0 ms28SlowNested loop/webhooks/audit_eventsinsert into audit_events (organisation_id, payload, created_at) values (?, ?, now()) returning id
2814:14:37Primary writerWebhookUPDATEcontent_items281 ms0 ms233SlowIndex scan/webhooks/content_itemsupdate content_items set updated_at = now(), metadata = jsonb_set(metadata, ?, ?) where organisation_id = ? and id = ?
2914:09:47Primary writerReportingINSERTwebsite_pages275 ms0 ms128SlowIndex scan/reports/website_pagesinsert into website_pages (organisation_id, payload, created_at) values (?, ?, now()) returning id
3014:15:24Primary writerApp APIUPDATEbilling_events273 ms0 ms251SlowNested loop/api/billing_eventsupdate billing_events set updated_at = now(), metadata = jsonb_set(metadata, ?, ?) where organisation_id = ? and id = ?
3114:13:30Primary writerWebhookUPDATEaccounts270 ms102 ms1,133SlowNested loop/webhooks/accountsupdate accounts set updated_at = now(), metadata = jsonb_set(metadata, ?, ?) where organisation_id = ? and id = ?
3214:13:05AnalyticsWorkerUPDATEwebsite_pages266 ms106 ms345SlowIndex scanjob:website_pages:syncupdate website_pages set updated_at = now(), metadata = jsonb_set(metadata, ?, ?) where organisation_id = ? and id = ?
3314:12:43AnalyticsApp APIDELETEjobs266 ms0 ms876SlowIndex scan/api/jobsdelete from jobs where organisation_id = ? and archived_at < now() - interval '90 days'
3414:11:55AnalyticsWebhookUPDATEbilling_events264 ms0 ms1,151SlowIndex scan/webhooks/billing_eventsupdate billing_events set updated_at = now(), metadata = jsonb_set(metadata, ?, ?) where organisation_id = ? and id = ?
3514:16:55Read replicaWorkerDELETEusers256 ms0 ms756SlowNested loopjob:users:syncdelete from users where organisation_id = ? and archived_at < now() - interval '90 days'
3614:15:58BillingReportingINSERTinvoices256 ms135 ms1,070SlowNested loop/reports/invoicesinsert into invoices (organisation_id, payload, created_at) values (?, ?, now()) returning id
3714:16:35AnalyticsWorkerUPDATEorganisations255 ms0 ms252SlowIndex scanjob:organisations:syncupdate organisations set updated_at = now(), metadata = jsonb_set(metadata, ?, ?) where organisation_id = ? and id = ?
3814:15:57BillingWebhookINSERTinvoices248 ms28 ms434OKIndex scan/webhooks/invoicesinsert into invoices (organisation_id, payload, created_at) values (?, ?, now()) returning id
3914:14:58AnalyticsBilling syncUPDATEorganisations246 ms0 ms183OKNested loopstripe:updateupdate organisations set updated_at = now(), metadata = jsonb_set(metadata, ?, ?) where organisation_id = ? and id = ?
4014:15:08Primary writerBilling syncUPDATEcontent_items245 ms0 ms687OKIndex scanstripe:updateupdate content_items set updated_at = now(), metadata = jsonb_set(metadata, ?, ?) where organisation_id = ? and id = ?
4114:14:47Read replicaReportingUPDATEusers244 ms0 ms130ErrorNested loop/reports/usersupdate users set updated_at = now(), metadata = jsonb_set(metadata, ?, ?) where organisation_id = ? and id = ?
4214:17:08Primary writerWorkerINSERTcontent_items234 ms0 ms107OKIndex scanjob:content_items:syncinsert into content_items (organisation_id, payload, created_at) values (?, ?, now()) returning id
4314:17:08BillingReportingUPDATEjobs233 ms0 ms783OKIndex scan/reports/jobsupdate jobs set updated_at = now(), metadata = jsonb_set(metadata, ?, ?) where organisation_id = ? and id = ?
4414:15:39Read replicaReportingUPDATEusers222 ms0 ms97OKIndex scan/reports/usersupdate users set updated_at = now(), metadata = jsonb_set(metadata, ?, ?) where organisation_id = ? and id = ?
4514:07:42BillingWorkerDELETEjobs221 ms102 ms1,071OKIndex scanjob:jobs:syncdelete from jobs where organisation_id = ? and archived_at < now() - interval '90 days'
4614:14:30Read replicaWorkerINSERTbilling_events219 ms0 ms966OKIndex scanjob:billing_events:syncinsert into billing_events (organisation_id, payload, created_at) values (?, ?, now()) returning id
4714:16:05Primary writerReportingINSERTcontent_items207 ms0 ms588OKNested loop/reports/content_itemsinsert into content_items (organisation_id, payload, created_at) values (?, ?, now()) returning id
4814:13:29BillingWebhookUPDATEusers206 ms0 ms195OKIndex scan/webhooks/usersupdate users set updated_at = now(), metadata = jsonb_set(metadata, ?, ?) where organisation_id = ? and id = ?
4914:11:47AnalyticsWebhookUPDATEinvoices204 ms0 ms389OKIndex scan/webhooks/invoicesupdate invoices set updated_at = now(), metadata = jsonb_set(metadata, ?, ?) where organisation_id = ? and id = ?
5014:15:28Read replicaBilling syncSELECTbilling_events190 ms0 ms6,391OKIndex scanstripe:selectselect id, organisation_id, status, updated_at from billing_events where organisation_id = ? and id = ? limit 1
5114:14:08Primary writerWebhookSELECTjobs190 ms0 ms6,684OKIndex scan/webhooks/jobsselect id, organisation_id, status, updated_at from jobs where organisation_id = ? and id = ? limit 1
5214:16:50Read replicaReportingSELECTaccounts189 ms0 ms5,871OKIndex scan/reports/accountsselect id, organisation_id, status, updated_at from accounts where organisation_id = ? and id = ? limit 1
5314:07:30Read replicaWorkerINSERTaccounts189 ms0 ms544OKNested loopjob:accounts:syncinsert into accounts (organisation_id, payload, created_at) values (?, ?, now()) returning id
5414:16:07AnalyticsWorkerINSERTsessions184 ms0 ms300OKIndex scanjob:sessions:syncinsert into sessions (organisation_id, payload, created_at) values (?, ?, now()) returning id
5514:13:46BillingApp APISELECTaccounts184 ms0 ms5,551ErrorIndex scan/api/accountsselect id, organisation_id, status, updated_at from accounts where organisation_id = ? and id = ? limit 1
5614:14:45Primary writerReportingSELECTorganisations180 ms0 ms1,813OKIndex scan/reports/organisationsselect id, organisation_id, status, updated_at from organisations where organisation_id = ? and id = ? limit 1
5714:15:50BillingWorkerSELECTfeature_flags174 ms0 ms6,814OKIndex scanjob:feature_flags:syncselect id, organisation_id, status, updated_at from feature_flags where organisation_id = ? and id = ? limit 1
5814:12:26BillingWorkerINSERTfeature_flags174 ms40 ms35OKIndex scanjob:feature_flags:syncinsert into feature_flags (organisation_id, payload, created_at) values (?, ?, now()) returning id
5914:13:58BillingApp APISELECTsessions168 ms0 ms4,040ErrorIndex scan/api/sessionsselect id, organisation_id, status, updated_at from sessions where organisation_id = ? and id = ? limit 1
6014:14:36BillingApp APISELECTsessions166 ms0 ms3,951OKIndex scan/api/sessionsselect id, organisation_id, status, updated_at from sessions where organisation_id = ? and id = ? limit 1
6114:16:45BillingWorkerSELECTinvoices164 ms0 ms26OKIndex scanjob:invoices:syncselect id, organisation_id, status, updated_at from invoices where organisation_id = ? and id = ? limit 1
6214:14:17Primary writerBilling syncSELECTinvoices163 ms0 ms3,514OKIndex scanstripe:selectselect id, organisation_id, status, updated_at from invoices where organisation_id = ? and id = ? limit 1
6314:17:17BillingApp APISELECTwebsite_pages158 ms0 ms8,089OKIndex scan/api/website_pagesselect id, organisation_id, status, updated_at from website_pages where organisation_id = ? and id = ? limit 1
6414:15:07BillingWebhookSELECTinvoices156 ms0 ms4,286OKIndex scan/webhooks/invoicesselect id, organisation_id, status, updated_at from invoices where organisation_id = ? and id = ? limit 1
6514:16:26Read replicaWebhookSELECTinvoices151 ms0 ms5,048OKIndex scan/webhooks/invoicesselect id, organisation_id, status, updated_at from invoices where organisation_id = ? and id = ? limit 1
6614:08:44Primary writerReportingSELECTaudit_events144 ms0 ms8,726OKIndex scan/reports/audit_eventsselect id, organisation_id, status, updated_at from audit_events where organisation_id = ? and id = ? limit 1
6714:16:44BillingBilling syncSELECTbilling_events143 ms0 ms8,523OKIndex scanstripe:selectselect id, organisation_id, status, updated_at from billing_events where organisation_id = ? and id = ? limit 1
6814:14:41Read replicaBilling syncSELECTaccounts143 ms0 ms7,571OKIndex scanstripe:selectselect id, organisation_id, status, updated_at from accounts where organisation_id = ? and id = ? limit 1
6914:14:37Primary writerReportingSELECTsessions141 ms0 ms64OKIndex scan/reports/sessionsselect id, organisation_id, status, updated_at from sessions where organisation_id = ? and id = ? limit 1
7014:13:09AnalyticsWebhookSELECTinvoices141 ms0 ms4,486OKIndex scan/webhooks/invoicesselect id, organisation_id, status, updated_at from invoices where organisation_id = ? and id = ? limit 1
7114:15:15BillingApp APISELECTaccounts138 ms0 ms9,095OKIndex scan/api/accountsselect id, organisation_id, status, updated_at from accounts where organisation_id = ? and id = ? limit 1
7214:16:04Read replicaReportingSELECTcontent_items136 ms0 ms8,754OKIndex scan/reports/content_itemsselect id, organisation_id, status, updated_at from content_items where organisation_id = ? and id = ? limit 1
7314:15:13Read replicaApp APISELECTbilling_events136 ms0 ms6,543OKIndex scan/api/billing_eventsselect id, organisation_id, status, updated_at from billing_events where organisation_id = ? and id = ? limit 1
7414:12:43Primary writerWebhookDELETEfeature_flags134 ms0 ms419OKIndex scan/webhooks/feature_flagsdelete from feature_flags where organisation_id = ? and archived_at < now() - interval '90 days'
7514:14:11Read replicaBilling syncINSERTsessions132 ms0 ms949ErrorNested loopstripe:insertinsert into sessions (organisation_id, payload, created_at) values (?, ?, now()) returning id
7614:14:52Primary writerWorkerDELETEusers131 ms0 ms198OKNested loopjob:users:syncdelete from users where organisation_id = ? and archived_at < now() - interval '90 days'
7714:15:54BillingApp APIUPDATEfeature_flags129 ms0 ms475OKNested loop/api/feature_flagsupdate feature_flags set updated_at = now(), metadata = jsonb_set(metadata, ?, ?) where organisation_id = ? and id = ?
7814:14:25Primary writerApp APISELECTorganisations129 ms0 ms6,383OKIndex scan/api/organisationsselect id, organisation_id, status, updated_at from organisations where organisation_id = ? and id = ? limit 1
7914:09:32AnalyticsWorkerSELECTsessions127 ms0 ms8,987OKIndex scanjob:sessions:syncselect id, organisation_id, status, updated_at from sessions where organisation_id = ? and id = ? limit 1
8014:11:59Read replicaBilling syncSELECTfeature_flags124 ms0 ms5,913OKIndex scanstripe:selectselect id, organisation_id, status, updated_at from feature_flags where organisation_id = ? and id = ? limit 1
12 columnsReady

SQL generated from grid state

select
	id, started_at, database_name, service_name, operation, table_name,
	duration_ms, lock_wait_ms, rows_examined, status, plan, endpoint, statement
from observability.query_log
order by duration_ms DESC
limit 80;

Request

{
  "resource": "observability.query_log",
  "query": {
    "search": "",
    "filters": {},
    "sort": {
      "key": "durationMs",
      "direction": "desc",
      "rules": [
        {
          "key": "durationMs",
          "direction": "desc"
        }
      ]
    }
  },
  "pagination": {
    "strategy": "live-window",
    "limit": 80,
    "buffered": 140
  }
}

Response window

{
  "returned": 80,
  "total": 140,
  "buffered": 140,
  "lastUpdatedAt": "14:17:17"
}

Custom cells

Column components and row actions

Set column.component to a Vue component. The component receives row, column, value, formatted, rowIndex, and rowKey. Display-only columns such as actions still use a stable key, but do not need a matching row property.

Team members

6 of 6 users

Filter User

Filter Team

Filter Status

Values

Filter Last active

ProductPending17 Jun 2026
EngineeringActive16 Jun 2026
DesignActive12 Jun 2026
SupportPaused08 Jun 2026
OperationsPending06 Jun 2026
SalesActive04 Jun 2026
5 columnsReady

EditNameCell.vue

EditNameCell.vuevue

RowActionsCell.vue

RowActionsCell.vuevue

Architecture

Resource query API

The component filters client-side by default so it works immediately with local rows. Set remote when the grid should render API results exactly as supplied and use query-change to request a SQL-backed resource. Keep pagination beside the grid query so the same endpoint can support numbered pages, previous/next controls, and cursor-fed scrolling.

Use virtualRows when rows are already held in memory but the DOM should stay small. It swaps the table body to a dedicated virtual row renderer, using virtualRowBuffer to keep extra rows mounted above and below the viewport.

For custom rendering, add component to a column definition. The column key is the stable column id; set field when the component should read a different row property, or omit it for display-only columns such as row actions.

Column definitions are the contract. A date column gets a date-range filter, numeric columns get min/max, boolean columns get a yes/no segmented control, and select columns can render known options from the resource schema. Set filterable: false on display-only or operational columns so they stay out of the filter UI and resource query.

For more complex ordering, pass sort.rules as an ordered array, or enable multiSort so header clicks build that array interactively. A keyword table can send searchVolume desc followed by difficulty asc, and a resource API can translate that directly to a multi-column ORDER BY.

resource-query-api.jsjs

Reference

Props

Control props

NameTypeTSDefaultDescription
rowsarrayArray<unknown>[]Rows to render. Each row should be a plain object from an API, store, or database result.
columnsarrayArray<DataGridColumn
type DataGridColumn = {
	key: string; // Stable column id. It can match a row property, or identify a display-only column such as actions.
	field?: string; // Row property to read when it differs from key.
	label?: string; // Header label.
	type?: 'text' | 'number' | 'date' | 'boolean' | 'select' | 'currency'; // Column data type. Drives sorting, formatting, and filter controls.
	width?: string | number; // CSS width for the column.
	align?: 'left' | 'center' | 'right'; // Cell alignment.
	component?: object | Function | string; // Vue component used to render cells in this column. Receives row, column, value, formatted, rowIndex, and rowKey props.
	resizable?: boolean; // Set false to disable drag resizing for this column.
	sortable?: boolean; // Set false to disable sorting.
	filterable?: boolean; // Set false to disable filtering for this column, hide the filter button, and omit the column from query filters.
	searchable?: boolean; // Set false to remove the column from global search.
	options?: Array<string | number | boolean | object>; // Select filter options. Objects may include label, value, and tone.
	currency?: string; // Currency code for currency columns.
	accessor?: Function; // Function that receives a row and returns the cell value.
	sortAccessor?: Function; // Function that receives a row and column and returns the value used for local sorting.
	format?: Function; // Function that receives value, row, and column and returns display text.
};
>
[]Column definitions. Each type chooses its own sorting, formatting, and filter controls.
rowKeystring | functionstring'id'Field name or function used to identify each row.
filtersobjectRecord<string, unknown>{}Controlled filter map keyed by column key.
sortobject | arrayArray<unknown>{"key":"","direction":""}Controlled sort state as { key, direction }, or { rules } for multi-column and computed sorting.
multiSortbooleanbooleanfalseWhen true, header clicks toggle each sortable column inside an ordered sort.rules array.
searchstringstring''Global search text.
selectedKeysarrayArray<unknown>[]Selected row keys.
remotebooleanbooleanfalseWhen true, rows render as supplied and query-change can drive a server/API request.
loadingbooleanbooleanfalseShow a loading row while server data is being fetched.
virtualRowsbooleanbooleanfalseRender large in-memory row sets through the isolated virtual row renderer.
virtualRowBuffernumbernumber50Rows kept mounted above and below the visible viewport when virtualRows is true.
virtualRowHeightnumbernumberFixed row height in pixels for virtual row calculations. Defaults to the grid density.
selectablebooleanbooleantrueShow row selection checkboxes.
showRowNumbersbooleanbooleantrueShow spreadsheet-style row numbers.
showColumnLettersbooleanbooleantrueShow spreadsheet-style column letters above headers.
stickyHeaderbooleanbooleantrueKeep header rows visible while the grid scrolls.
resizableColumnsbooleanbooleantrueAllow users to drag header dividers to resize columns.
minColumnWidthnumbernumber40Minimum column width in pixels while resizing. The default leaves room for the filter icon.
toolbarbooleanbooleantrueShow the title, search box, filter chips, and row count toolbar.
titlestringstring'Data grid'Toolbar title.
resourceLabelstringstring'rows'Human label for the resource being rendered.
totalRowsnumbernumberServer-side total row count when remote is true.
density'compact' | 'comfortable'string'compact'Row height density.
heightstring | numberstring'34rem'Scrollable grid height as a CSS size or pixel number.
emptyTextstringstring'No rows match the current filters.'Message shown when no rows are visible.

Auto-generated from Data grid.props and inline _edit hints.

Events

NamePayloadDescription
@update:filtersRecord<string, DataGridFilter>Fired when a column filter is applied or cleared.
@filter-change(payload
payload: unknown;
: unknown)
@update:sortDataGridSortFired when column sorting changes. Complex sort values may include an ordered rules array.
@sort-change(payload
payload: unknown;
: unknown)
@update:searchstringFired when the toolbar search changes.
@query-changeDataGridQueryFired with the normalized search, filters, and sort state. Use this to call a resource API.
@viewport-scroll{ scrollTop, scrollHeight, clientHeight, remaining, atEnd }Fired when the scrollable row viewport scrolls.
@viewport-end{ scrollTop, scrollHeight, clientHeight, remaining, atEnd }Fired when the scrollable row viewport reaches the bottom threshold. Useful for cursor pagination and infinite loading.
@cell-update({ row, column, rowIndex, rowKey, value, previousValue })Re-emitted when a column component emits update:value.
@cell-action({ row, column, rowIndex, rowKey, value, formatted, action, payload })Re-emitted when a column component emits action.
@column-resize({ column, key, width, previousWidth, startWidth })Fired while a header divider is dragged and a column width changes.
@column-resize-end({ column, key, width, previousWidth, startWidth })Fired when the user finishes resizing a column.
@render-window-change({ startIndex, endIndex, renderedRows, totalRows, firstVisibleIndex, lastVisibleIndex })Fired by the virtual row renderer when the mounted row window changes.
@update:selectedKeysArray<string | number>Fired when row selection changes.
@selection-change(payload
payload: unknown;
: unknown)
@row-click({ row, index })Fired when a data row is clicked.

Names auto-detected from defineEmits and source emit() calls; payload and description from __doc.events when present.

Slots

NameScopeDescription
#cell{ row, column, value, formatted, rowIndex, rowKey }Custom cell renderer.
#toolbar-actions{ query, clearFilters }Extra controls rendered next to search and Clear filters.
#emptyCustom empty state.