Datatable

Tabulator: sorting, pagination and export, fed from the data service.

1 example

How to use it

Copy any example below and paste it in
Marker
data-datatable="resource". The value is a resource name handed to core/data-service.js — the page never fetches.
Columns
Taken from meta.columns in the response if present, otherwise inferred from the first row.
Export
A button with data-datatable-for="id" and data-datatable-export="csv|json".
One trap
Leave responsiveLayout: false. With collapse, an overflowing column is moved into a panel with no toggle and its data becomes unreachable.

Invoices, with export

Source: invoices.json