Content
Tables
Flat data tables for admin apps — lines between rows only, sortable columns, row selection and hover actions.
| Actions | |||||
|---|---|---|---|---|---|
AK Ana Kim ana@kim.dev | Active | Mar 4, 2026 | $2,480.00 | ||
MR Marco Rossi marco@rossi.it | Trial | Oct 12, 2026 | $129.00 | ||
LT Lee Tran lee@tran.co | Paused | Jan 20, 2025 | $12,904.50 |
<div class="table-wrap">
<table class="table table-hover">
<thead><tr>
<th class="table-check">
<input type="checkbox" class="form-check-input" aria-label="Select all">
</th>
<th><button class="table-sort">Customer</button></th>
<th class="text-end"><button class="table-sort">Spent</button></th>
<th><span class="visually-hidden">Actions</span></th>
</tr></thead>
<tbody><tr>
<td class="table-check">
<input type="checkbox" class="form-check-input">
</td>
<td>Ana Kim</td>
<td class="text-end">$2,480.00</td>
<td class="table-actions">…buttons…</td>
</tr></tbody>
</table>
</div>
With moey.js, everything works automatically:
- Sorting — click a
.table-sortheader. Numbers ($1,240.50,12%), dates and text sort correctly;<td data-sort="…">overrides a value (e.g. sort "2h ago" by a timestamp). Themoey:sortevent is cancelable — sort on your server instead. - Select all — the header checkbox in
.table-checkselects every row and shows a dash when only some are checked.moey:selecttells you which rows. - Selected rows highlight on their own — that's pure CSS.
- Row actions in
.table-actionsappear on hover or keyboard focus (always visible on touch screens).
Options
| Plan | Members | Price |
|---|---|---|
| Starter | 3 | $0 |
| Pro | 25 | $29 |
| Business | Unlimited | $99 |
| Total | $128 |
| Class | What it does |
|---|---|
.table-sm · .table-lg | Denser or roomier rows |
.table-hover · .table-striped | Row hover tint · alternating tint |
.table-wrap | Scrolls sideways on small screens |
.table-sticky | Header stays put while the .table-wrap scrolls (give the wrap a max-height) |
.table-check · .table-actions | Checkbox column · hover actions column |
.is-selected | Highlight a row yourself |
Inside a card with .card-flush, the first and last columns line up with the card's padding automatically.
Data table with a footer
A card, a scrolling table, and pagination in the footer.
Orders
Last 30 days
| Status | ||||
|---|---|---|---|---|
| #10421 | AK Ana Kim ana@kim.dev | Paid | $129.00 | |
| #10420 | MR Marco Rossi marco@rossi.it | Pending | $48.50 | |
| #10419 | LT Lee Tran lee@tran.co | Refunded | $212.99 |
<div class="card">
<div class="card-header">…title, search…</div>
<div class="card-body card-flush table-wrap">
<table class="table table-hover">…</table>
</div>
<div class="card-footer">
<span class="pagination-info">Showing 1–3 of 248</span>
<nav class="pagination pagination-sm" data-moey-pages="83" data-moey-page="1"></nav>
</div>
</div>
Empty and loading
An empty state when there are no rows; skeleton rows while loading.
| Order | Customer | Amount |
|---|---|---|
No orders yetNew orders show up here. | ||
| Order | Customer | Amount |
|---|---|---|
<tr><td colspan="3"><div class="empty empty-sm">…</div></td></tr> <!-- no rows -->
<tr><td><div class="skeleton-text"></div></td>…</tr> <!-- loading -->