Skip to main content

Interface: ColorRefOpts<Row>

Defined in: packages/sdvtables/src/spec.ts:96

Per-row colour for a reactablefmtr-style kind (reactablefmtr fill_color_ref / color_ref): colorRef names a column holding a hex colour or CSS colour name ("steelblue") per row; or team names a column of team names/ids, resolved in league to the team's which colour. colorRef wins over team. Any other colorRef value (blank, unknown name, rgb(), url(...)) counts as no row colour: never written to CSS, the row falls back to team, then the kind's own scale (or iconSet's bucket colour). A dataBar with gradient: true ignores both, as reactablefmtr does (fill_gradient drops fill_color_ref).

Type Parameters​

Row​

Row

Properties​

colorRef?​

readonly optional colorRef?: keyof Row & string

Defined in: packages/sdvtables/src/spec.ts:97


idSystem?​

readonly optional idSystem?: IdSystem

Defined in: packages/sdvtables/src/spec.ts:102


league?​

readonly optional league?: "aaf" | "ahl" | "ajhl" | "bchl" | "cchl" | "cebl" | "cfb" | "cfl" | "chl" | "cricket" | "easl" | "echl" | "f1" | "fiba" | "gojhl" | "iihf" | "kijhl" | "lba" | "mbb" | "mhl" | "milb" | "mjhl" | "mlb" | "nba" | "nbagl" | "nbl" | "ncaa_baseball" | "ncaa_mhockey" | "ncaa_softball" | "ncaa_whockey" | "nfl" | "nhl" | "nojhl" | "ohl" | "ojhl" | "phf" | "pwhl" | "qmjhl" | "sjhl" | "soccer" | "sphl" | "ufl" | "usfl" | "ushl" | "vijhl" | "wbb" | "whl" | "wnba" | "xfl"

Defined in: packages/sdvtables/src/spec.ts:99


season?​

readonly optional season?: SeasonInput

Defined in: packages/sdvtables/src/spec.ts:101


strict?​

readonly optional strict?: boolean

Defined in: packages/sdvtables/src/spec.ts:103


team?​

readonly optional team?: keyof Row & string

Defined in: packages/sdvtables/src/spec.ts:98


which?​

readonly optional which?: Which

Defined in: packages/sdvtables/src/spec.ts:100