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 |
|---|---|---|---|
| Flow cytometry D | Genetics | Amara Okafor | 11 |
| Flow cytometry C | Immunology | Elena Rossi | 7 |
| Flow cytometry B | Biochemistry | Daniel Kim | 3 |
| Flow cytometry A | Microbiology | Chloé Martin | 13 |
| ELISA E | Genetics | Amara Okafor | 10 |
| ELISA D | Immunology | Elena Rossi | 6 |
| ELISA C | Biochemistry | Daniel Kim | 16 |
| ELISA B | Microbiology | Chloé Martin | 12 |
@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> } }