Data table
The admin table: Flop-driven sort/pagination, built-in debounced search and filter selects, tabs with filter presets, a collapsible stat overview, bulk selection, and a cards view — with the entire table state living in the URL. Everything below is live against an in-memory dataset.
Revenue (all)
$12031.57
Orders
10
Pending
19
Refunded
19
#4811
refunded
Edsger Turing
Direct · $217.58
#4812
pending
Barbara Liskov
eBay · $268.53
#4813
shipped
Donald Thompson
Shopify · $80.10
#4814
refunded
Radia Hopper
Direct · $285.17
#4815
pending
Ken Knuth
eBay · $49.27
#4816
shipped
Ada Lovelace
Shopify · $304.18
#4817
refunded
Alan Dijkstra
Direct · $389.70
#4818
pending
Grace Perlman
eBay · $89.93
#4819
shipped
Edsger Turing
Shopify · $287.34
#4820
refunded
Barbara Liskov
Direct · $48.51
About this table
Demo dataset. In a real app, rows/meta come from one
Flop.validate_and_run/3 call; this page hand-parses the same
URL params to stay database-free.
<.data_table id="orders" rows={@orders} meta={@meta} path={~p"/orders"}
selected_ids={@selected} search_field={:q}>
<:stat label="Revenue (30d)" value={@revenue} />
<:tab label="Pending" count={@counts.pending}
filters={[%{field: "status", value: "pending"}]} />
<:filter field={:channel} options={@channels} />
<:col :let={o} label="Order" field={:reference} sortable>{o.reference}</:col>
<:bulk_action label="Archive" icon="inbox" event="bulk-archive" />
<:row_action :let={o}>…</:row_action>
<:card :let={o}>…</:card>
</.data_table>