snake: a long table folded into side-by-side blocks
| Team | Wins | Losses | Team | Wins | Losses | |
|---|---|---|---|---|---|---|
![]() | 15 | 2 | ![]() | 13 | 4 | |
![]() | 11 | 6 | ![]() | 8 | 9 | |
![]() | 10 | 7 | ![]() | 5 | 12 | |
![]() | 4 | 13 | ![]() | 4 | 13 |
import { STANDINGS, type Standing } from "@sportsdataverse/examples/data";
import { defineTable } from "@sportsdataverse/sdvtables";
import { renderHTMLAsync } from "@sportsdataverse/sdvtables/html";
const spec = defineTable<Standing>()
.columns((c) => [c.logo("team", { league: "nfl" }), c.int("wins"), c.int("losses")])
.snake({ nCols: 2 })
.title("AFC, 2024")
.build();
await renderHTMLAsync(spec, STANDINGS);
Tags: decoration · snake · gt_snake. All sdvtables examples.







