boldRows: rows picked by a predicate
| Team | Wins | Losses |
|---|---|---|
![]() | 15 | 2 |
![]() | 11 | 6 |
![]() | 10 | 7 |
![]() | 4 | 13 |
![]() | 13 | 4 |
![]() | 8 | 9 |
![]() | 5 | 12 |
![]() | 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")])
.boldRows({ key: "wins", op: ">=", value: 13 }, { highlightColor: "#FFF3B0" })
.title("AFC, 2024: 13 or more wins")
.build();
await renderHTMLAsync(spec, STANDINGS);
Tags: decoration · boldRows · gt_bold_rows · predicate. All sdvtables examples.







