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 20:46:50

Buffered

140

P95 duration

1007 ms

Slow queries

40

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

120:43:37Primary writerWorkerDELETEwebsite_pages1581 ms0 ms447SlowNested loopjob:website_pages:syncdelete from website_pages where organisation_id = ? and archived_at < now() - interval '90 days'
220:45:05BillingWebhookSELECTfeature_flags1445 ms0 ms699,067TimeoutSeq scan/webhooks/feature_flagsselect * from feature_flags where organisation_id = ? and lower(search_text) like ? order by updated_at desc limit 100
320:45:52AnalyticsWebhookSELECTcontent_items1430 ms0 ms272,787TimeoutSeq scan/webhooks/content_itemsselect * from content_items where organisation_id = ? and lower(search_text) like ? order by updated_at desc limit 100
420:40:08BillingWorkerINSERTorganisations1328 ms0 ms204SlowNested loopjob:organisations:syncinsert into organisations (organisation_id, payload, created_at) values (?, ?, now()) returning id
520:43:03AnalyticsWorkerSELECTaudit_events1250 ms564 ms773,214SlowSeq scanjob:audit_events:syncselect * from audit_events where organisation_id = ? and lower(search_text) like ? order by updated_at desc limit 100
620:40:24BillingApp APIUPDATEaccounts1158 ms0 ms722SlowNested loop/api/accountsupdate accounts set updated_at = now(), metadata = jsonb_set(metadata, ?, ?) where organisation_id = ? and id = ?
720:42:49BillingWebhookSELECTwebsite_pages1084 ms580 ms385,111SlowSeq scan/webhooks/website_pagesselect * from website_pages where organisation_id = ? and lower(search_text) like ? order by updated_at desc limit 100
820:41:40Primary writerApp APISELECTsessions1007 ms0 ms181,382SlowSeq scan/api/sessionsselect * from sessions where organisation_id = ? and lower(search_text) like ? order by updated_at desc limit 100
920:39:34Read replicaWorkerSELECTcontent_items995 ms0 ms245,918SlowSeq scanjob:content_items:syncselect * from content_items where organisation_id = ? and lower(search_text) like ? order by updated_at desc limit 100
1020:46:46Primary writerBilling syncSELECTjobs959 ms0 ms24,578SlowSeq scanstripe:selectselect * from jobs where organisation_id = ? and lower(search_text) like ? order by updated_at desc limit 100
1120:42:15Primary writerApp APIUPDATEsessions930 ms0 ms680SlowIndex scan/api/sessionsupdate sessions set updated_at = now(), metadata = jsonb_set(metadata, ?, ?) where organisation_id = ? and id = ?
1220:46:16AnalyticsWorkerUPDATEwebsite_pages924 ms18 ms1,148SlowIndex scanjob:website_pages:syncupdate website_pages set updated_at = now(), metadata = jsonb_set(metadata, ?, ?) where organisation_id = ? and id = ?
1320:44:09Primary writerWebhookUPDATEorganisations913 ms0 ms72SlowNested loop/webhooks/organisationsupdate organisations set updated_at = now(), metadata = jsonb_set(metadata, ?, ?) where organisation_id = ? and id = ?
1420:45:38Read replicaApp APIINSERTjobs889 ms0 ms222SlowIndex scan/api/jobsinsert into jobs (organisation_id, payload, created_at) values (?, ?, now()) returning id
1520:46:04Read replicaWorkerSELECTsessions882 ms0 ms557,706SlowSeq scanjob:sessions:syncselect * from sessions where organisation_id = ? and lower(search_text) like ? order by updated_at desc limit 100
1620:39:22Read replicaBilling syncUPDATEaudit_events862 ms0 ms981SlowIndex scanstripe:updateupdate audit_events set updated_at = now(), metadata = jsonb_set(metadata, ?, ?) where organisation_id = ? and id = ?
1720:45:13BillingReportingSELECTaccounts853 ms33 ms605,003SlowSeq scan/reports/accountsselect * from accounts where organisation_id = ? and lower(search_text) like ? order by updated_at desc limit 100
1820:42:22Read replicaBilling syncINSERTaudit_events806 ms0 ms402SlowIndex scanstripe:insertinsert into audit_events (organisation_id, payload, created_at) values (?, ?, now()) returning id
1920:46:49AnalyticsWebhookINSERTbilling_events788 ms330 ms1,054SlowNested loop/webhooks/billing_eventsinsert into billing_events (organisation_id, payload, created_at) values (?, ?, now()) returning id
2020:41:13BillingWebhookDELETEinvoices633 ms0 ms615SlowIndex scan/webhooks/invoicesdelete from invoices where organisation_id = ? and archived_at < now() - interval '90 days'
2120:45:29AnalyticsApp APISELECTjobs595 ms266 ms488,582SlowSeq scan/api/jobsselect * from jobs where organisation_id = ? and lower(search_text) like ? order by updated_at desc limit 100
2220:46:37Read replicaReportingSELECTaudit_events580 ms232 ms591,145SlowSeq scan/reports/audit_eventsselect * from audit_events where organisation_id = ? and lower(search_text) like ? order by updated_at desc limit 100
2320:44:05Read replicaApp APIDELETEaudit_events535 ms0 ms800SlowNested loop/api/audit_eventsdelete from audit_events where organisation_id = ? and archived_at < now() - interval '90 days'
2420:45:45BillingWorkerSELECTinvoices478 ms0 ms661,673SlowSeq scanjob:invoices:syncselect * from invoices where organisation_id = ? and lower(search_text) like ? order by updated_at desc limit 100
2520:39:15AnalyticsReportingUPDATEorganisations463 ms0 ms372SlowIndex scan/reports/organisationsupdate organisations set updated_at = now(), metadata = jsonb_set(metadata, ?, ?) where organisation_id = ? and id = ?
2620:44:09Primary writerReportingSELECTbilling_events456 ms0 ms122,285SlowSeq scan/reports/billing_eventsselect * from billing_events where organisation_id = ? and lower(search_text) like ? order by updated_at desc limit 100
2720:46:33Read replicaApp APISELECTwebsite_pages442 ms0 ms214,703SlowSeq scan/api/website_pagesselect * from website_pages where organisation_id = ? and lower(search_text) like ? order by updated_at desc limit 100
2820:36:22Primary writerReportingINSERTaccounts319 ms130 ms757SlowIndex scan/reports/accountsinsert into accounts (organisation_id, payload, created_at) values (?, ?, now()) returning id
2920:46:10AnalyticsApp APIUPDATEaccounts316 ms0 ms678SlowNested loop/api/accountsupdate accounts set updated_at = now(), metadata = jsonb_set(metadata, ?, ?) where organisation_id = ? and id = ?
3020:44:02Primary writerBilling syncDELETEwebsite_pages296 ms9 ms149SlowIndex scanstripe:deletedelete from website_pages where organisation_id = ? and archived_at < now() - interval '90 days'
3120:44:56Primary writerReportingINSERTcontent_items293 ms152 ms437SlowIndex scan/reports/content_itemsinsert into content_items (organisation_id, payload, created_at) values (?, ?, now()) returning id
3220:45:13BillingReportingDELETEsessions283 ms0 ms390SlowIndex scan/reports/sessionsdelete from sessions where organisation_id = ? and archived_at < now() - interval '90 days'
3320:42:14Read replicaWebhookUPDATEfeature_flags282 ms71 ms129SlowIndex scan/webhooks/feature_flagsupdate feature_flags set updated_at = now(), metadata = jsonb_set(metadata, ?, ?) where organisation_id = ? and id = ?
3420:40:04Read replicaBilling syncUPDATEbilling_events279 ms84 ms1,142SlowIndex scanstripe:updateupdate billing_events set updated_at = now(), metadata = jsonb_set(metadata, ?, ?) where organisation_id = ? and id = ?
3520:37:37BillingApp APIINSERTusers269 ms0 ms830SlowNested loop/api/usersinsert into users (organisation_id, payload, created_at) values (?, ?, now()) returning id
3620:45:07Primary writerApp APIDELETEjobs266 ms0 ms765SlowNested loop/api/jobsdelete from jobs where organisation_id = ? and archived_at < now() - interval '90 days'
3720:46:36BillingWorkerINSERTbilling_events261 ms0 ms892SlowIndex scanjob:billing_events:syncinsert into billing_events (organisation_id, payload, created_at) values (?, ?, now()) returning id
3820:44:17BillingReportingINSERTorganisations260 ms67 ms669SlowIndex scan/reports/organisationsinsert into organisations (organisation_id, payload, created_at) values (?, ?, now()) returning id
3920:41:09Primary writerWorkerUPDATEbilling_events260 ms0 ms568SlowIndex scanjob:billing_events:syncupdate billing_events set updated_at = now(), metadata = jsonb_set(metadata, ?, ?) where organisation_id = ? and id = ?
4020:45:26BillingWebhookINSERTusers252 ms0 ms315SlowNested loop/webhooks/usersinsert into users (organisation_id, payload, created_at) values (?, ?, now()) returning id
4120:45:47Read replicaBilling syncINSERTusers248 ms0 ms43OKNested loopstripe:insertinsert into users (organisation_id, payload, created_at) values (?, ?, now()) returning id
4220:46:33Read replicaWebhookUPDATEfeature_flags244 ms0 ms1,136OKIndex scan/webhooks/feature_flagsupdate feature_flags set updated_at = now(), metadata = jsonb_set(metadata, ?, ?) where organisation_id = ? and id = ?
4320:44:51Read replicaBilling syncDELETEaccounts233 ms0 ms958OKIndex scanstripe:deletedelete from accounts where organisation_id = ? and archived_at < now() - interval '90 days'
4420:36:48Read replicaApp APIINSERTaudit_events214 ms0 ms979OKNested loop/api/audit_eventsinsert into audit_events (organisation_id, payload, created_at) values (?, ?, now()) returning id
4520:44:44Primary writerReportingINSERTcontent_items197 ms0 ms468OKIndex scan/reports/content_itemsinsert into content_items (organisation_id, payload, created_at) values (?, ?, now()) returning id
4620:46:28AnalyticsApp APISELECTinvoices188 ms0 ms8,670OKIndex scan/api/invoicesselect id, organisation_id, status, updated_at from invoices where organisation_id = ? and id = ? limit 1
4720:43:52BillingWebhookDELETEinvoices188 ms21 ms969OKIndex scan/webhooks/invoicesdelete from invoices where organisation_id = ? and archived_at < now() - interval '90 days'
4820:40:58AnalyticsWorkerDELETEsessions186 ms70 ms21OKNested loopjob:sessions:syncdelete from sessions where organisation_id = ? and archived_at < now() - interval '90 days'
4920:41:30Read replicaApp APISELECTwebsite_pages185 ms0 ms4,624OKIndex scan/api/website_pagesselect id, organisation_id, status, updated_at from website_pages where organisation_id = ? and id = ? limit 1
5020:45:22AnalyticsWebhookINSERTusers184 ms0 ms451OKIndex scan/webhooks/usersinsert into users (organisation_id, payload, created_at) values (?, ?, now()) returning id
5120:37:23Read replicaWorkerSELECTsessions184 ms0 ms3,713OKIndex scanjob:sessions:syncselect id, organisation_id, status, updated_at from sessions where organisation_id = ? and id = ? limit 1
5220:44:07AnalyticsReportingSELECTinvoices183 ms0 ms6,245OKIndex scan/reports/invoicesselect id, organisation_id, status, updated_at from invoices where organisation_id = ? and id = ? limit 1
5320:41:57BillingWebhookUPDATEjobs182 ms0 ms394OKIndex scan/webhooks/jobsupdate jobs set updated_at = now(), metadata = jsonb_set(metadata, ?, ?) where organisation_id = ? and id = ?
5420:42:51Read replicaWebhookINSERTorganisations176 ms0 ms638OKIndex scan/webhooks/organisationsinsert into organisations (organisation_id, payload, created_at) values (?, ?, now()) returning id
5520:45:46BillingWorkerSELECTaccounts171 ms0 ms851OKIndex scanjob:accounts:syncselect id, organisation_id, status, updated_at from accounts where organisation_id = ? and id = ? limit 1
5620:45:44AnalyticsBilling syncUPDATEjobs169 ms0 ms567OKIndex scanstripe:updateupdate jobs set updated_at = now(), metadata = jsonb_set(metadata, ?, ?) where organisation_id = ? and id = ?
5720:44:45BillingApp APIUPDATEaccounts165 ms0 ms327OKIndex scan/api/accountsupdate accounts set updated_at = now(), metadata = jsonb_set(metadata, ?, ?) where organisation_id = ? and id = ?
5820:44:17Primary writerApp APISELECTcontent_items165 ms0 ms1,294OKIndex scan/api/content_itemsselect id, organisation_id, status, updated_at from content_items where organisation_id = ? and id = ? limit 1
5920:43:33BillingApp APISELECTaudit_events165 ms0 ms7,543OKIndex scan/api/audit_eventsselect id, organisation_id, status, updated_at from audit_events where organisation_id = ? and id = ? limit 1
6020:44:16Primary writerReportingSELECTaudit_events156 ms0 ms7,489OKIndex scan/reports/audit_eventsselect id, organisation_id, status, updated_at from audit_events where organisation_id = ? and id = ? limit 1
6120:44:07Primary writerReportingSELECTaccounts152 ms0 ms6,847OKIndex scan/reports/accountsselect id, organisation_id, status, updated_at from accounts where organisation_id = ? and id = ? limit 1
6220:44:51Read replicaApp APISELECTusers148 ms0 ms2,288OKIndex scan/api/usersselect id, organisation_id, status, updated_at from users where organisation_id = ? and id = ? limit 1
6320:45:01Read replicaBilling syncSELECTorganisations147 ms0 ms4,536OKIndex scanstripe:selectselect id, organisation_id, status, updated_at from organisations where organisation_id = ? and id = ? limit 1
6420:45:16BillingWebhookSELECTfeature_flags144 ms0 ms7,381OKIndex scan/webhooks/feature_flagsselect id, organisation_id, status, updated_at from feature_flags where organisation_id = ? and id = ? limit 1
6520:45:32BillingWebhookSELECTjobs143 ms0 ms3,705OKIndex scan/webhooks/jobsselect id, organisation_id, status, updated_at from jobs where organisation_id = ? and id = ? limit 1
6620:43:32Primary writerApp APISELECTinvoices143 ms0 ms8,970OKIndex scan/api/invoicesselect id, organisation_id, status, updated_at from invoices where organisation_id = ? and id = ? limit 1
6720:45:00Read replicaWebhookSELECTaudit_events142 ms0 ms3,927OKIndex scan/webhooks/audit_eventsselect id, organisation_id, status, updated_at from audit_events where organisation_id = ? and id = ? limit 1
6820:37:41AnalyticsWebhookSELECTbilling_events142 ms0 ms4,894OKIndex scan/webhooks/billing_eventsselect id, organisation_id, status, updated_at from billing_events where organisation_id = ? and id = ? limit 1
6920:42:45BillingApp APIINSERTwebsite_pages141 ms26 ms773OKIndex scan/api/website_pagesinsert into website_pages (organisation_id, payload, created_at) values (?, ?, now()) returning id
7020:38:41Primary writerWebhookINSERTaccounts140 ms0 ms520OKIndex scan/webhooks/accountsinsert into accounts (organisation_id, payload, created_at) values (?, ?, now()) returning id
7120:46:25Read replicaApp APISELECTsessions132 ms0 ms5,233OKIndex scan/api/sessionsselect id, organisation_id, status, updated_at from sessions where organisation_id = ? and id = ? limit 1
7220:45:42AnalyticsWorkerSELECTinvoices131 ms0 ms407OKIndex scanjob:invoices:syncselect id, organisation_id, status, updated_at from invoices where organisation_id = ? and id = ? limit 1
7320:44:53AnalyticsApp APISELECTwebsite_pages129 ms0 ms2,061OKIndex scan/api/website_pagesselect id, organisation_id, status, updated_at from website_pages where organisation_id = ? and id = ? limit 1
7420:45:48AnalyticsApp APISELECTbilling_events126 ms0 ms5,492OKIndex scan/api/billing_eventsselect id, organisation_id, status, updated_at from billing_events where organisation_id = ? and id = ? limit 1
7520:42:23Primary writerReportingSELECTinvoices126 ms0 ms9,156OKIndex scan/reports/invoicesselect id, organisation_id, status, updated_at from invoices where organisation_id = ? and id = ? limit 1
7620:39:27BillingReportingUPDATEfeature_flags121 ms0 ms249OKIndex scan/reports/feature_flagsupdate feature_flags set updated_at = now(), metadata = jsonb_set(metadata, ?, ?) where organisation_id = ? and id = ?
7720:45:30Primary writerBilling syncSELECTbilling_events118 ms0 ms7,181OKIndex scanstripe:selectselect id, organisation_id, status, updated_at from billing_events where organisation_id = ? and id = ? limit 1
7820:46:29BillingWebhookINSERTsessions117 ms0 ms270OKIndex scan/webhooks/sessionsinsert into sessions (organisation_id, payload, created_at) values (?, ?, now()) returning id
7920:46:32Read replicaApp APIINSERTaccounts115 ms0 ms588OKIndex scan/api/accountsinsert into accounts (organisation_id, payload, created_at) values (?, ?, now()) returning id
8020:45:45Primary writerReportingSELECTorganisations110 ms0 ms8,994ErrorIndex scan/reports/organisationsselect id, organisation_id, status, updated_at from organisations 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": "20:46:50"
}

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.