spotlight: one row lit, the rest dimmed
| Team | Qb | Wins | Losses |
|---|---|---|---|
![]() | Patrick Mahomes | 15 | 2 |
![]() | Justin Herbert | 11 | 6 |
![]() | Bo Nix | 10 | 7 |
![]() | Gardner Minshew | 4 | 13 |
![]() | Josh Allen | 13 | 4 |
![]() | Tua Tagovailoa | 8 | 9 |
![]() | Aaron Rodgers | 5 | 12 |
![]() | Drake Maye | 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.text("qb"), c.int("wins"), c.int("losses")])
.spotlight({ key: "team", op: "==", value: "BUF" }, { fill: "#E8EEF9", accentColor: "#00338D" })
.title("AFC, 2024: Buffalo")
.build();
await renderHTMLAsync(spec, STANDINGS);
Tags: decoration · spotlight · gt_spotlight · predicate. All sdvtables examples.







