Data Table
Table with sorting, search and pagination done on the server. Everything is a real link or GET field (it works without JS); with JS, each action swaps only the table region and the URL keeps the state. The search box sits outside the swapped region, so typing is never interrupted.
Protocols
40 results
| Protocol | Area | Owner | Steps |
|---|---|---|---|
| Cell culture A | Microbiology | Chloé Martin | 14 |
| Cell culture B | Biochemistry | Daniel Kim | 4 |
| Cell culture C | Immunology | Elena Rossi | 8 |
| Cell culture D | Genetics | Amara Okafor | 12 |
| Cell culture E | Neuroscience | Ben Carter | 16 |
| Chromatography A | Immunology | Elena Rossi | 10 |
| Chromatography B | Genetics | Amara Okafor | 14 |
| Chromatography C | Neuroscience | Ben Carter | 4 |
@components.DataTable(components.DataTableProps{
ID: "protocols", URL: "/protocols", Columns: columns,
Sort: r.Sort, Dir: r.Dir, Query: q, Page: r.Page, TotalPages: r.TotalPages, Total: r.Total,
Searchable: true,
}) { for _, p := range r.Rows { <tr>...</tr> } }