Skip to content

Data ​

The table sorts and filters rows in the browser, and with source it hands that work to your server.

column.value(row) returns the cell value. Numbers and dates sort by size, strings alphabetically in the current language, and empty null values go last. sortable: false turns sorting off for a column.

format(value, row) turns the value into the cell text. Group labels, totals and the filter list have no row, so undefined comes in its place.

On large data sorting, filters and grouping run in parts and show progress. When the work is done, the settle event arrives with the row count.

The select-all checkbox selects the rows visible after filtering. The loading prop shows placeholders instead of rows, and empty rows show Empty or the empty slot.

Filters and totals ​

The filter in the column menu depends on the column type: text, number, date, or a list of values for boolean. The filter field picks another filter (text, number, date or set), and false removes it. With filter: 'set' the filter offers a list of values to pick from.

The v-model:quick model searches all text columns at once.

A long list shows the first hundred values, and the search above the list finds the rest. "Select all" with a box unchecked afterwards gives a filter with exclude: true: it hides the named values, and values that appear later stay visible.

The list is marked busy while its values are gathered. If gathering takes a while, "Loading the values…" stands in its place.

A column with aggregate adds a totals row at the bottom, such as a sum or an average. The totals row shows the totalsLabel caption and the number of rows left after filtering.

A number column computes sum, count, avg, min and max, a date column min, max and count, and text and boolean columns count. A custom function works for a column of any type.

Orders of the month

#
Customer
City
Status
Total
20401
Peter Wolfe
Boston
Delivered
$307
20402
Lena Ortiz
Chicago
Delivered
$138
20403
Tim Sayed
Denver
Delivered
$507
20404
Vera Lane
Boston
Canceled
$180
20405
Glen Nash
Austin
Delivered
$175
20406
Evan Porter
Seattle
Shipped
$199
20407
Mary Cooper
Portland
Shipped
$416
20408
Paul Hawkins
Boston
Shipped
$368
20409
Olga Graham
Chicago
Paid
$139
20410
Sam Ellis
Denver
Paid
$863
20411
Nina Hart
Austin
Awaiting payment
$498
20412
Alina Yusuf
Portland
Awaiting payment
$187
Total12 rows
$3,977

Groups ​

The v-model:groupBy model groups rows by column values, and totals are computed for each group. Columns can share a common header when you describe a column group as { key, label, children }.

A group label sits in the column the rows are grouped by, and each nested level sits in its own column. Place that column near the start so the label stays in view on a phone.

Orders by group

Order
Buyer
#
Status
Customer
Total
Total12 rows
$3,977

Pages ​

The pagination prop shows a Pagination under the table. With remote and total the application handles sorting, filters and page changes, and the table shows the rows and emits events.

All orders

#
Customer
Total
21000
Paul Hawkins
$297
21001
Alina Yusuf
$148
21002
Vera Lane
$498
21003
Mary Cooper
$1,653
21004
Lena Ortiz
$1,041
21005
Olga Graham
$413
21006
Alina Yusuf
$1,125
21007
Mary Cooper
$336
21008
Paul Hawkins
$128
21009
Mary Cooper
$329

Row tree ​

The getChildren function turns the table into a tree: a row with children gets an arrow, and the children are indented. The keys of expanded rows are kept in v-model:expanded.

When the children are not loaded yet, mark the row with hasChildren. On expand the table emits the load event and shows the children once they arrive. A click on the arrow expands the row without moving the focus or selecting a cell.

The totals row of a tree counts every row left after the filters, collapsed ones included. The parents of found rows stay in the tree and count too.

Catalog by section

Section
Products
In stock
Furniture
7
81
Chairs
3
46
Tables
2
22
Storage
2
13

Row details ​

The detail slot adds an arrow to the row, and an expanded row shows the slot content beneath it across the full table width. The keys of expanded rows are kept in v-model:expanded, and hasDetail keeps the arrow only on rows that have details.

The arrow keys pass through a details block, and Tab moves the focus inside it. Clicks, keys and pastes inside the block go to its content, so a second table can live there.

Selection, copying and cell editing skip details blocks, and a page keeps the same number of rows. With height the table counts the block height in the scroll. Details do not work in a row tree.

Orders and their items

Order
Customer
City
Total
20401
Peter Wolfe
Boston
307

Courier · Card

Item
Qty
Price
Cost
Oslo armchair
1
249
249
Linen pillow
2
29
58
Total2 rows
307
20404
Vera Lane
Boston
180

Ten thousand rows ​

With height the table scrolls inside itself and renders only the visible rows of rowHeight height and the visible columns.

A column with pin: 'start' or pin: 'end' stays in place on horizontal scroll, and rows from pinnedRows stay under the header. A column can also be pinned or hidden from its menu, and hideable: false keeps it from being hidden. The column the rows are grouped by cannot be hidden until the grouping is removed.

10,000 readings

#
Sensor
Zone
Temperature
Humidity
Time
1
Sensor 1
Warehouse
18 °C
40 %
9/1/26, 12:00 AM
1
Sensor 1
Warehouse
18 °C
40 %
9/1/26, 12:00 AM
2
Sensor 2
Workshop
25 °C
53 %
9/1/26, 12:01 AM
3
Sensor 3
Office
32 °C
66 %
9/1/26, 12:02 AM
4
Sensor 4
Server room
24 °C
44 %
9/1/26, 12:03 AM
5
Sensor 5
Warehouse
31 °C
57 %
9/1/26, 12:04 AM
6
Sensor 6
Workshop
23 °C
70 %
9/1/26, 12:05 AM
7
Sensor 7
Office
30 °C
48 %
9/1/26, 12:06 AM
8
Sensor 8
Server room
22 °C
61 %
9/1/26, 12:07 AM
9
Sensor 9
Warehouse
29 °C
74 %
9/1/26, 12:08 AM
10
Sensor 10
Workshop
21 °C
52 %
9/1/26, 12:09 AM
11
Sensor 11
Office
28 °C
65 %
9/1/26, 12:10 AM
12
Sensor 12
Server room
20 °C
43 %
9/1/26, 12:11 AM
13
Sensor 13
Warehouse
27 °C
56 %
9/1/26, 12:12 AM
14
Sensor 14
Workshop
19 °C
69 %
9/1/26, 12:13 AM
15
Sensor 15
Office
26 °C
47 %
9/1/26, 12:14 AM
16
Sensor 16
Server room
18 °C
60 %
9/1/26, 12:15 AM
17
Sensor 17
Warehouse
25 °C
73 %
9/1/26, 12:16 AM
18
Sensor 18
Workshop
32 °C
51 %
9/1/26, 12:17 AM
19
Sensor 19
Office
24 °C
64 %
9/1/26, 12:18 AM
20
Sensor 20
Server room
31 °C
42 %
9/1/26, 12:19 AM
21
Sensor 21
Warehouse
23 °C
55 %
9/1/26, 12:20 AM
22
Sensor 22
Workshop
30 °C
68 %
9/1/26, 12:21 AM
23
Sensor 23
Office
22 °C
46 %
9/1/26, 12:22 AM
24
Sensor 24
Server room
29 °C
59 %
9/1/26, 12:23 AM
25
Sensor 1
Warehouse
21 °C
72 %
9/1/26, 12:24 AM
26
Sensor 2
Workshop
28 °C
50 %
9/1/26, 12:25 AM
27
Sensor 3
Office
20 °C
63 %
9/1/26, 12:26 AM
28
Sensor 4
Server room
27 °C
41 %
9/1/26, 12:27 AM
29
Sensor 5
Warehouse
19 °C
54 %
9/1/26, 12:28 AM
30
Sensor 6
Workshop
26 °C
67 %
9/1/26, 12:29 AM

With rowHeight="auto" each row is as tall as its content, and the table still renders only the visible rows. Columns with wrap wrap their text.

The table measures rows as they appear on screen. While the scroll height settles, the row under the header does not move.

2,000 requests

No.
Author
Topic
Request
1
Peter Wolfe
Delivery
Thanks, everything arrived.
2
Lena Ortiz
Warranty
The payment went through twice. Refund the extra charge and send the receipt to my email.
3
Tim Sayed
Return
The courier came a day late. Please tell me when the second box arrives.
4
Vera Lane
Payment
Thanks, everything arrived.
5
Glen Nash
Delivery
The payment went through twice. Refund the extra charge and send the receipt to my email.
6
Evan Porter
Warranty
The courier came a day late. Please tell me when the second box arrives.
7
Mary Cooper
Return
Thanks, everything arrived.
8
Paul Hawkins
Payment
The payment went through twice. Refund the extra charge and send the receipt to my email.
9
Olga Graham
Delivery
The courier came a day late. Please tell me when the second box arrives.
10
Sam Ellis
Warranty
Thanks, everything arrived.
11
Nina Hart
Return
The payment went through twice. Refund the extra charge and send the receipt to my email.
12
Alina Yusuf
Payment
The courier came a day late. Please tell me when the second box arrives.
13
Peter Wolfe
Delivery
Thanks, everything arrived.
14
Lena Ortiz
Warranty
The payment went through twice. Refund the extra charge and send the receipt to my email.
15
Tim Sayed
Return
The courier came a day late. Please tell me when the second box arrives.
16
Vera Lane
Payment
Thanks, everything arrived.
17
Glen Nash
Delivery
The payment went through twice. Refund the extra charge and send the receipt to my email.
18
Evan Porter
Warranty
The courier came a day late. Please tell me when the second box arrives.
19
Mary Cooper
Return
Thanks, everything arrived.
20
Paul Hawkins
Payment
The payment went through twice. Refund the extra charge and send the receipt to my email.
21
Olga Graham
Delivery
The courier came a day late. Please tell me when the second box arrives.
22
Sam Ellis
Warranty
Thanks, everything arrived.
23
Nina Hart
Return
The payment went through twice. Refund the extra charge and send the receipt to my email.
24
Alina Yusuf
Payment
The courier came a day late. Please tell me when the second box arrives.
25
Peter Wolfe
Delivery
Thanks, everything arrived.
26
Lena Ortiz
Warranty
The payment went through twice. Refund the extra charge and send the receipt to my email.
27
Tim Sayed
Return
The courier came a day late. Please tell me when the second box arrives.
28
Vera Lane
Payment
Thanks, everything arrived.
29
Glen Nash
Delivery
The payment went through twice. Refund the extra charge and send the receipt to my email.
30
Evan Porter
Warranty
The courier came a day late. Please tell me when the second box arrives.

Server data ​

The source prop loads rows from a server. The fetch({ offset, limit, sort, filters, signal }) function returns { rows, total }, or { rows, hasMore } when the total is unknown.

The table requests rows in blocks of blockSize as the user scrolls and keeps the last fifty blocks. While a block is loading, placeholders stand in for its rows.

Sorting, filters and search run on the server, and outdated requests are canceled through signal. The totals function returns the totals row.

The values function feeds a list filter: it receives the column key, the filters, a limit and the search text and returns { values, truncated }. With truncated: true the filter says that not every value is listed and offers search.

Without height the table shows data page by page, one request per page. The refresh() method on the table ref clears the cache, and a failed request arrives as the error event. CSV export fetches the whole result a thousand rows per request.

Orders on the server

#
Customer
Amount

Loading orders…

With v-model:groupBy the server computes the groups: fetch receives the groupBy keys and the groupPath to the expanded group. While the path is shorter than the list of keys, return { groups } with the value, row count and totals of each group. At the last level return the rows of the group.

Groups start collapsed, and the keys of expanded ones are kept in v-model:expanded. While the rows of an expanded group are loading, placeholders stand in for them.

Orders by city

#
Customer
City
Amount
Total

To load a tree from the server, set source.children: it gets a row, the sorting, filters and a signal and returns the row's children. Mark rows with children with hasChildren, and the children load when the row is expanded. Grouping does not work in a tree.

While the children are loading, a placeholder shows under the row. CSV export of a tree takes only the top-level rows.

Departments on the server

Department
People

Edit this page

Search

Esc