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 |
|---|---|---|---|
| ELISA A | Neuroscience | Ben Carter | 8 |
| Confocal microscopy E | Immunology | Elena Rossi | 4 |
| Confocal microscopy D | Biochemistry | Daniel Kim | 14 |
| Confocal microscopy C | Microbiology | Chloé Martin | 10 |
| Confocal microscopy B | Neuroscience | Ben Carter | 6 |
| Confocal microscopy A | Genetics | Amara Okafor | 16 |
| Chromatography E | Biochemistry | Daniel Kim | 12 |
| Chromatography D | Microbiology | Chloé Martin | 8 |
@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> } }