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 12:09:23

Buffered

140

P95 duration

991 ms

Slow queries

25

Errors

7

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

112:06:05AnalyticsWebhookSELECTcontent_items1540 ms0 ms287,773SlowSeq scan/webhooks/content_itemsselect * from content_items where organisation_id = ? and lower(search_text) like ? order by updated_at desc limit 100
212:02:37BillingWebhookSELECTsessions1516 ms0 ms432,251TimeoutSeq scan/webhooks/sessionsselect * from sessions where organisation_id = ? and lower(search_text) like ? order by updated_at desc limit 100
312:01:19BillingReportingSELECTinvoices1497 ms0 ms368,027SlowSeq scan/reports/invoicesselect * from invoices where organisation_id = ? and lower(search_text) like ? order by updated_at desc limit 100
412:08:54Read replicaWorkerSELECTcontent_items1429 ms0 ms408,872SlowSeq scanjob:content_items:syncselect * from content_items where organisation_id = ? and lower(search_text) like ? order by updated_at desc limit 100
512:06:52BillingWorkerINSERTorganisations1149 ms0 ms227SlowNested loopjob:organisations:syncinsert into organisations (organisation_id, payload, created_at) values (?, ?, now()) returning id
612:08:24BillingWorkerSELECTsessions1133 ms0 ms359,443SlowSeq scanjob:sessions:syncselect * from sessions where organisation_id = ? and lower(search_text) like ? order by updated_at desc limit 100
712:05:51AnalyticsReportingINSERTwebsite_pages1066 ms0 ms365SlowIndex scan/reports/website_pagesinsert into website_pages (organisation_id, payload, created_at) values (?, ?, now()) returning id
812:08:21Primary writerWorkerSELECTcontent_items991 ms0 ms483,674SlowSeq scanjob:content_items:syncselect * from content_items where organisation_id = ? and lower(search_text) like ? order by updated_at desc limit 100
912:09:06Primary writerReportingSELECTorganisations893 ms281 ms178,305SlowSeq scan/reports/organisationsselect * from organisations where organisation_id = ? and lower(search_text) like ? order by updated_at desc limit 100
1012:02:23Read replicaReportingINSERTbilling_events876 ms0 ms790SlowIndex scan/reports/billing_eventsinsert into billing_events (organisation_id, payload, created_at) values (?, ?, now()) returning id
1112:07:41BillingWebhookSELECTjobs760 ms289 ms385,391SlowSeq scan/webhooks/jobsselect * from jobs where organisation_id = ? and lower(search_text) like ? order by updated_at desc limit 100
1212:05:33BillingWorkerDELETEusers599 ms0 ms782SlowNested loopjob:users:syncdelete from users where organisation_id = ? and archived_at < now() - interval '90 days'
1312:05:26Primary writerWorkerSELECTinvoices397 ms183 ms129,915SlowSeq scanjob:invoices:syncselect * from invoices where organisation_id = ? and lower(search_text) like ? order by updated_at desc limit 100
1412:05:24BillingWorkerSELECTjobs354 ms106 ms397,536SlowSeq scanjob:jobs:syncselect * from jobs where organisation_id = ? and lower(search_text) like ? order by updated_at desc limit 100
1512:07:43BillingApp APISELECTorganisations341 ms104 ms123,579SlowSeq scan/api/organisationsselect * from organisations where organisation_id = ? and lower(search_text) like ? order by updated_at desc limit 100
1612:05:12AnalyticsApp APIINSERTjobs310 ms63 ms235SlowNested loop/api/jobsinsert into jobs (organisation_id, payload, created_at) values (?, ?, now()) returning id
1712:03:42AnalyticsWebhookINSERTfeature_flags309 ms0 ms477SlowIndex scan/webhooks/feature_flagsinsert into feature_flags (organisation_id, payload, created_at) values (?, ?, now()) returning id
1812:08:31Primary writerReportingINSERTwebsite_pages307 ms0 ms931SlowIndex scan/reports/website_pagesinsert into website_pages (organisation_id, payload, created_at) values (?, ?, now()) returning id
1912:07:51AnalyticsWorkerUPDATEaudit_events291 ms0 ms449SlowNested loopjob:audit_events:syncupdate audit_events set updated_at = now(), metadata = jsonb_set(metadata, ?, ?) where organisation_id = ? and id = ?
2012:03:49Read replicaBilling syncSELECTfeature_flags287 ms0 ms186,838SlowSeq scanstripe:selectselect * from feature_flags where organisation_id = ? and lower(search_text) like ? order by updated_at desc limit 100
2112:03:59Primary writerWebhookUPDATEinvoices281 ms0 ms17SlowNested loop/webhooks/invoicesupdate invoices set updated_at = now(), metadata = jsonb_set(metadata, ?, ?) where organisation_id = ? and id = ?
2212:05:48Read replicaWorkerUPDATEjobs280 ms88 ms261SlowIndex scanjob:jobs:syncupdate jobs set updated_at = now(), metadata = jsonb_set(metadata, ?, ?) where organisation_id = ? and id = ?
2312:07:07Read replicaWebhookUPDATEbilling_events265 ms0 ms513SlowIndex scan/webhooks/billing_eventsupdate billing_events set updated_at = now(), metadata = jsonb_set(metadata, ?, ?) where organisation_id = ? and id = ?
2412:03:16AnalyticsWebhookINSERTbilling_events252 ms0 ms840SlowNested loop/webhooks/billing_eventsinsert into billing_events (organisation_id, payload, created_at) values (?, ?, now()) returning id
2512:07:35BillingReportingUPDATEusers250 ms0 ms104SlowIndex scan/reports/usersupdate users set updated_at = now(), metadata = jsonb_set(metadata, ?, ?) where organisation_id = ? and id = ?
2612:07:52Primary writerWebhookINSERTjobs249 ms66 ms711OKNested loop/webhooks/jobsinsert into jobs (organisation_id, payload, created_at) values (?, ?, now()) returning id
2712:07:26BillingWebhookDELETEaccounts243 ms0 ms312OKIndex scan/webhooks/accountsdelete from accounts where organisation_id = ? and archived_at < now() - interval '90 days'
2812:00:47AnalyticsWorkerUPDATEfeature_flags241 ms67 ms518OKIndex scanjob:feature_flags:syncupdate feature_flags set updated_at = now(), metadata = jsonb_set(metadata, ?, ?) where organisation_id = ? and id = ?
2912:07:47Read replicaWorkerINSERTorganisations237 ms0 ms469OKIndex scanjob:organisations:syncinsert into organisations (organisation_id, payload, created_at) values (?, ?, now()) returning id
3012:07:02AnalyticsWorkerINSERTbilling_events232 ms0 ms957OKIndex scanjob:billing_events:syncinsert into billing_events (organisation_id, payload, created_at) values (?, ?, now()) returning id
3112:05:45Read replicaWorkerINSERTaudit_events232 ms42 ms182OKIndex scanjob:audit_events:syncinsert into audit_events (organisation_id, payload, created_at) values (?, ?, now()) returning id
3212:05:36Read replicaWorkerINSERTinvoices226 ms28 ms83OKNested loopjob:invoices:syncinsert into invoices (organisation_id, payload, created_at) values (?, ?, now()) returning id
3312:03:47Read replicaApp APIINSERTaudit_events226 ms0 ms202OKIndex scan/api/audit_eventsinsert into audit_events (organisation_id, payload, created_at) values (?, ?, now()) returning id
3412:08:15Read replicaWorkerUPDATEaudit_events222 ms118 ms1,060OKNested loopjob:audit_events:syncupdate audit_events set updated_at = now(), metadata = jsonb_set(metadata, ?, ?) where organisation_id = ? and id = ?
3512:02:47Primary writerWebhookUPDATEcontent_items222 ms53 ms227OKIndex scan/webhooks/content_itemsupdate content_items set updated_at = now(), metadata = jsonb_set(metadata, ?, ?) where organisation_id = ? and id = ?
3611:58:52BillingWorkerINSERTorganisations219 ms94 ms671OKNested loopjob:organisations:syncinsert into organisations (organisation_id, payload, created_at) values (?, ?, now()) returning id
3712:07:56AnalyticsReportingINSERTorganisations216 ms0 ms846OKIndex scan/reports/organisationsinsert into organisations (organisation_id, payload, created_at) values (?, ?, now()) returning id
3812:08:06BillingWebhookINSERTwebsite_pages200 ms0 ms676OKIndex scan/webhooks/website_pagesinsert into website_pages (organisation_id, payload, created_at) values (?, ?, now()) returning id
3912:08:42BillingBilling syncSELECTorganisations190 ms0 ms2,529OKIndex scanstripe:selectselect id, organisation_id, status, updated_at from organisations where organisation_id = ? and id = ? limit 1
4012:08:23AnalyticsBilling syncUPDATEcontent_items190 ms25 ms746OKIndex scanstripe:updateupdate content_items set updated_at = now(), metadata = jsonb_set(metadata, ?, ?) where organisation_id = ? and id = ?
4112:05:53BillingApp APISELECTaccounts190 ms0 ms1,636OKIndex scan/api/accountsselect id, organisation_id, status, updated_at from accounts where organisation_id = ? and id = ? limit 1
4212:06:55Primary writerReportingSELECTusers189 ms0 ms4,038OKIndex scan/reports/usersselect id, organisation_id, status, updated_at from users where organisation_id = ? and id = ? limit 1
4312:09:21Primary writerBilling syncUPDATEaudit_events187 ms95 ms842OKIndex scanstripe:updateupdate audit_events set updated_at = now(), metadata = jsonb_set(metadata, ?, ?) where organisation_id = ? and id = ?
4412:05:19AnalyticsApp APISELECTaccounts187 ms0 ms2,054OKIndex scan/api/accountsselect id, organisation_id, status, updated_at from accounts where organisation_id = ? and id = ? limit 1
4512:04:25AnalyticsBilling syncDELETEaudit_events187 ms45 ms338OKIndex scanstripe:deletedelete from audit_events where organisation_id = ? and archived_at < now() - interval '90 days'
4612:06:28AnalyticsBilling syncSELECTusers186 ms0 ms7,310OKIndex scanstripe:selectselect id, organisation_id, status, updated_at from users where organisation_id = ? and id = ? limit 1
4712:05:38BillingWebhookSELECTusers186 ms0 ms141OKIndex scan/webhooks/usersselect id, organisation_id, status, updated_at from users where organisation_id = ? and id = ? limit 1
4812:08:56Read replicaWebhookSELECTusers181 ms0 ms6,564OKIndex scan/webhooks/usersselect id, organisation_id, status, updated_at from users where organisation_id = ? and id = ? limit 1
4912:08:52Primary writerApp APISELECTbilling_events181 ms0 ms7,609OKIndex scan/api/billing_eventsselect id, organisation_id, status, updated_at from billing_events where organisation_id = ? and id = ? limit 1
5012:07:54BillingApp APISELECTinvoices181 ms0 ms9,376OKIndex scan/api/invoicesselect id, organisation_id, status, updated_at from invoices where organisation_id = ? and id = ? limit 1
5112:03:41Primary writerWebhookSELECTsessions181 ms0 ms8,677OKIndex scan/webhooks/sessionsselect id, organisation_id, status, updated_at from sessions where organisation_id = ? and id = ? limit 1
5211:58:28AnalyticsReportingSELECTinvoices181 ms0 ms6,859OKIndex scan/reports/invoicesselect id, organisation_id, status, updated_at from invoices where organisation_id = ? and id = ? limit 1
5312:07:54Primary writerWorkerSELECTorganisations179 ms0 ms3,782OKIndex scanjob:organisations:syncselect id, organisation_id, status, updated_at from organisations where organisation_id = ? and id = ? limit 1
5412:06:27Primary writerWebhookSELECTcontent_items178 ms0 ms1,893OKIndex scan/webhooks/content_itemsselect id, organisation_id, status, updated_at from content_items where organisation_id = ? and id = ? limit 1
5512:06:15Primary writerApp APIUPDATEorganisations175 ms0 ms648OKIndex scan/api/organisationsupdate organisations set updated_at = now(), metadata = jsonb_set(metadata, ?, ?) where organisation_id = ? and id = ?
5612:03:32Read replicaReportingSELECTsessions173 ms0 ms6,439OKIndex scan/reports/sessionsselect id, organisation_id, status, updated_at from sessions where organisation_id = ? and id = ? limit 1
5712:04:32Read replicaBilling syncSELECTjobs172 ms0 ms2,910OKIndex scanstripe:selectselect id, organisation_id, status, updated_at from jobs where organisation_id = ? and id = ? limit 1
5812:05:50Primary writerApp APISELECTaccounts169 ms0 ms1,451OKIndex scan/api/accountsselect id, organisation_id, status, updated_at from accounts where organisation_id = ? and id = ? limit 1
5912:08:54Primary writerWorkerUPDATEsessions168 ms0 ms557OKNested loopjob:sessions:syncupdate sessions set updated_at = now(), metadata = jsonb_set(metadata, ?, ?) where organisation_id = ? and id = ?
6012:00:50AnalyticsWorkerSELECTorganisations168 ms0 ms1,079OKIndex scanjob:organisations:syncselect id, organisation_id, status, updated_at from organisations where organisation_id = ? and id = ? limit 1
6112:09:16Read replicaWebhookSELECTsessions167 ms0 ms9,137ErrorIndex scan/webhooks/sessionsselect id, organisation_id, status, updated_at from sessions where organisation_id = ? and id = ? limit 1
6212:08:30Read replicaApp APIUPDATEorganisations167 ms0 ms824OKNested loop/api/organisationsupdate organisations set updated_at = now(), metadata = jsonb_set(metadata, ?, ?) where organisation_id = ? and id = ?
6312:07:10Read replicaWorkerSELECTaudit_events167 ms0 ms2,854OKIndex scanjob:audit_events:syncselect id, organisation_id, status, updated_at from audit_events where organisation_id = ? and id = ? limit 1
6412:03:27BillingBilling syncSELECTusers167 ms0 ms2,407OKIndex scanstripe:selectselect id, organisation_id, status, updated_at from users where organisation_id = ? and id = ? limit 1
6512:05:48AnalyticsReportingSELECTbilling_events166 ms0 ms1,315OKIndex scan/reports/billing_eventsselect id, organisation_id, status, updated_at from billing_events where organisation_id = ? and id = ? limit 1
6612:05:24Primary writerWorkerSELECTwebsite_pages166 ms0 ms9,334OKIndex scanjob:website_pages:syncselect id, organisation_id, status, updated_at from website_pages where organisation_id = ? and id = ? limit 1
6712:03:15BillingBilling syncSELECTaudit_events166 ms0 ms3,944OKIndex scanstripe:selectselect id, organisation_id, status, updated_at from audit_events where organisation_id = ? and id = ? limit 1
6812:06:12Read replicaReportingSELECTjobs160 ms0 ms5,121OKIndex scan/reports/jobsselect id, organisation_id, status, updated_at from jobs where organisation_id = ? and id = ? limit 1
6912:07:32Primary writerWebhookSELECTsessions156 ms0 ms2,008OKIndex scan/webhooks/sessionsselect id, organisation_id, status, updated_at from sessions where organisation_id = ? and id = ? limit 1
7012:05:16BillingWorkerDELETEinvoices155 ms0 ms945OKIndex scanjob:invoices:syncdelete from invoices where organisation_id = ? and archived_at < now() - interval '90 days'
7112:01:10Read replicaReportingSELECTaccounts154 ms0 ms3,317OKIndex scan/reports/accountsselect id, organisation_id, status, updated_at from accounts where organisation_id = ? and id = ? limit 1
7212:07:12BillingApp APISELECTaccounts152 ms0 ms991OKIndex scan/api/accountsselect id, organisation_id, status, updated_at from accounts where organisation_id = ? and id = ? limit 1
7312:05:17Primary writerWebhookSELECTbilling_events150 ms0 ms7,284OKIndex scan/webhooks/billing_eventsselect id, organisation_id, status, updated_at from billing_events where organisation_id = ? and id = ? limit 1
7412:06:33AnalyticsApp APISELECTusers149 ms0 ms9,197OKIndex scan/api/usersselect id, organisation_id, status, updated_at from users where organisation_id = ? and id = ? limit 1
7512:05:20BillingApp APISELECTfeature_flags147 ms0 ms8,861OKIndex scan/api/feature_flagsselect id, organisation_id, status, updated_at from feature_flags where organisation_id = ? and id = ? limit 1
7611:59:28Primary writerReportingINSERTcontent_items146 ms54 ms212OKNested loop/reports/content_itemsinsert into content_items (organisation_id, payload, created_at) values (?, ?, now()) returning id
7712:01:03AnalyticsApp APISELECTorganisations145 ms0 ms1,990OKIndex scan/api/organisationsselect id, organisation_id, status, updated_at from organisations where organisation_id = ? and id = ? limit 1
7812:09:20Primary writerWebhookSELECTaudit_events144 ms0 ms2,046OKIndex scan/webhooks/audit_eventsselect id, organisation_id, status, updated_at from audit_events where organisation_id = ? and id = ? limit 1
7912:08:47Read replicaBilling syncINSERTinvoices143 ms0 ms716OKIndex scanstripe:insertinsert into invoices (organisation_id, payload, created_at) values (?, ?, now()) returning id
8012:05:40Primary writerReportingSELECTjobs139 ms0 ms5,672OKIndex scan/reports/jobsselect id, organisation_id, status, updated_at from jobs 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": "12:09:23"
}

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.
virtualRowHeightnumbernumber—Fixed 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.
totalRowsnumbernumber—Server-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.
#empty—Custom empty state.