Type Alias: CellPart
CellPart = {
alt:string;height:number;id:string;kind:"logo"|"wordmark"|"headshot";src:string;text?:string;type:"image"; } | {num:string;size:string;suffix:string;type:"rank"; }
Defined in: packages/sdvtables/src/tanstack-table.ts:31
A cell sdvtables draws as more than text, as data: render turns it into the caller's framework markup.
Union Members
Type Literal
{ alt: string; height: number; id: string; kind: "logo" | "wordmark" | "headshot"; src: string; text?: string; type: "image"; }
alt
readonlyalt:string
The team's name for a mark; "" for a headshot, which is decorative (the player's name sits in its row).
height
readonlyheight:number
px
id
readonlyid:string
The resolved team id or the player id, as the HTML table's data-sdv-id.
kind
readonlykind:"logo"|"wordmark"|"headshot"
"logo" and "wordmark": a team's mark; "headshot": a player's photo.
src
readonlysrc:string
text?
readonlyoptionaltext?:string
A logo column with includeName: the cell's text, drawn after the image.
type
readonlytype:"image"
Type Literal
{ num: string; size: string; suffix: string; type: "rank"; }
num
readonlynum:string
size
readonlysize:string
suffix
readonlysuffix:string
type
readonlytype:"rank"
A rank with superscript (the default): num then suffix in a <sup> of size ("1", "st").