Skip to main content

Interface: ColumnFactory<Row>

Defined in: packages/sdvtables/src/define.ts:19

Type Parameters​

Row​

Row

Properties​

fmtRank​

fmtRank: <K>(key, o?) => ColumnBase<Row, NumericKey<Row>> & object

Defined in: packages/sdvtables/src/define.ts:151

gtUtils aliases — same objects, old names (see src/aliases.ts).

Type Parameters​

K​

K extends string

Parameters​

key​

K

o?​

Base<Row, K> & Partial<Opt<ColumnBase<Row, NumericKey<Row>> & object, never>>

Returns​

ColumnBase<Row, NumericKey<Row>> & object


fmtTally​

fmtTally: (keys, o?) => ColumnBase<Row, NumericKey<Row>> & object

Defined in: packages/sdvtables/src/define.ts:152

Parameters​

keys​

readonly [NumericKey<Row>, NumericKey<Row>]

o?​

Base<Row, NumericKey<Row>> & Partial<Opt<ColumnBase<Row, NumericKey<Row>> & object, "keys">>

Returns​

ColumnBase<Row, NumericKey<Row>> & object

Methods​

bubble()​

bubble<K>(key, o?): ColumnBase<Row, NumericKey<Row>> & ColorRefOpts<Row> & object

Defined in: packages/sdvtables/src/define.ts:128

reactablefmtr bubble_grid (defaults: circles, colours #15607A / #FFFFFF / #FA8C00, 100px at the max).

Type Parameters​

K​

K extends string

Parameters​

key​

K

o?​

Base<Row, K> & Partial<Opt<ColumnBase<Row, NumericKey<Row>> & ColorRefOpts<Row> & object, never>>

Returns​


colorPills()​

colorPills<K>(key, o?): ColumnBase<Row, NumericKey<Row>> & ColorRefOpts<Row> & object

Defined in: packages/sdvtables/src/define.ts:55

Type Parameters​

K​

K extends string

Parameters​

key​

K

o?​

Base<Row, K> & Partial<Opt<ColumnBase<Row, NumericKey<Row>> & ColorRefOpts<Row> & object, never>>

Returns​


colorRanks()​

colorRanks<K>(key, o?): ColumnBase<Row, NumericKey<Row>> & ColorRefOpts<Row> & object

Defined in: packages/sdvtables/src/define.ts:59

Type Parameters​

K​

K extends string

Parameters​

key​

K

o?​

Base<Row, K> & Partial<Opt<ColumnBase<Row, NumericKey<Row>> & ColorRefOpts<Row> & object, never>>

Returns​


colorResults()​

colorResults<K>(key, o?): ColumnBase<Row, keyof Row & string> & object

Defined in: packages/sdvtables/src/define.ts:63

Type Parameters​

K​

K extends string

Parameters​

key​

K

o?​

Base<Row, K> & Partial<Opt<ColumnBase<Row, keyof Row & string> & object, never>>

Returns​

ColumnBase<Row, keyof Row & string> & object


dataBar()​

dataBar<K>(key, o?): ColumnBase<Row, NumericKey<Row>> & ColorRefOpts<Row> & MarkOpts<Row> & object

Defined in: packages/sdvtables/src/define.ts:107

reactablefmtr data_bars (defaults: fill #15607A, track #EEEEEE, text inside the bar's end, 18px bars).

Type Parameters​

K​

K extends string

Parameters​

key​

K

o?​

Base<Row, K> & Partial<Opt<ColumnBase<Row, NumericKey<Row>> & ColorRefOpts<Row> & MarkOpts<Row> & object, never>>

Returns​


delta()​

delta<K>(from, to, o?): ColumnBase<Row, NumericKey<Row>> & object

Defined in: packages/sdvtables/src/define.ts:34

Type Parameters​

K​

K extends string

Parameters​

from​

K

to​

NumericKey<Row>

o?​

Base<Row, K> & Partial<Opt<ColumnBase<Row, NumericKey<Row>> & object, "to">>

Returns​

ColumnBase<Row, NumericKey<Row>> & object


gauge()​

gauge<K>(key, o?): ColumnBase<Row, NumericKey<Row>> & ColorRefOpts<Row> & object

Defined in: packages/sdvtables/src/define.ts:146

reactablefmtr gauge_chart (defaults: fill #15607A, track #EEEEEE, size 1 = 50px wide, scale 0 to max |value|).

Type Parameters​

K​

K extends string

Parameters​

key​

K

o?​

Base<Row, K> & Partial<Opt<ColumnBase<Row, NumericKey<Row>> & ColorRefOpts<Row> & object, never>>

Returns​


headshot()​

headshot<K>(key, o): ColumnBase<Row, keyof Row & string> & object

Defined in: packages/sdvtables/src/define.ts:51

Type Parameters​

K​

K extends string

Parameters​

key​

K

o​

Base<Row, K> & Partial<Omit<Opt<ColumnBase<Row, keyof Row & string> & object, never>, "league">> & Pick<Opt<ColumnBase<Row, keyof Row & string> & object, never>, "league">

Returns​

ColumnBase<Row, keyof Row & string> & object


highlight()​

highlight<K>(key, when, o?): ColumnBase<Row, keyof Row & string> & object

Defined in: packages/sdvtables/src/define.ts:79

Mark the cells that match when (a predicate), or pass "min" / "max" / "both" to mark the column's extremes (reactablefmtr highlight_min / highlight_max / highlight_min_max: bold, red min and green max, no fill).

Type Parameters​

K​

K extends string

Parameters​

key​

K

when​

"min" | "max" | "both" | Predicate<Row>

o?​

Base<Row, K> & Partial<Opt<ColumnBase<Row, keyof Row & string> & object, "when" | "extreme">>

Returns​


highlightNa()​

highlightNa<K>(key, o?): ColumnBase<Row, keyof Row & string> & object

Defined in: packages/sdvtables/src/define.ts:84

Type Parameters​

K​

K extends string

Parameters​

key​

K

o?​

Base<Row, K> & Partial<Opt<ColumnBase<Row, keyof Row & string> & object, never>>

Returns​

ColumnBase<Row, keyof Row & string> & object


iconAssign()​

iconAssign<K>(key, o?): ColumnBase<Row, NumericKey<Row>> & object

Defined in: packages/sdvtables/src/define.ts:117

reactablefmtr icon_assign (defaults: circles, fill #15607A, empty #EEEEEE, 16px, no value shown).

Type Parameters​

K​

K extends string

Parameters​

key​

K

o?​

Base<Row, K> & Partial<Opt<ColumnBase<Row, NumericKey<Row>> & object, never>>

Returns​


iconSet()​

iconSet<K>(key, o?): ColumnBase<Row, NumericKey<Row>> & object

Defined in: packages/sdvtables/src/define.ts:112

reactablefmtr icon_sets (defaults: one circle, colours #15607A / #B0B0B0 / #FA8C00, icon right, 16px).

Type Parameters​

K​

K extends string

Parameters​

key​

K

o?​

Base<Row, K> & Partial<Opt<ColumnBase<Row, NumericKey<Row>> & object, never>>

Returns​


image()​

image<K>(key, o?): ColumnBase<Row, keyof Row & string> & object

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

Type Parameters​

K​

K extends string

Parameters​

key​

K

o?​

Base<Row, K> & Partial<Opt<ColumnBase<Row, keyof Row & string> & object, never>>

Returns​

ColumnBase<Row, keyof Row & string> & object


indicatorBox()​

indicatorBox<K>(key, o?): ColumnBase<Row, keyof Row & string> & object

Defined in: packages/sdvtables/src/define.ts:71

Type Parameters​

K​

K extends string

Parameters​

key​

K

o?​

Base<Row, K> & Partial<Opt<ColumnBase<Row, keyof Row & string> & object, never>>

Returns​

ColumnBase<Row, keyof Row & string> & object


int()​

int<K>(key, o?): ColumnBase<Row, NumericKey<Row>> & object

Defined in: packages/sdvtables/src/define.ts:25

Type Parameters​

K​

K extends string

Parameters​

key​

K

o?​

Base<Row, K>

Returns​

ColumnBase<Row, NumericKey<Row>> & object


logo<K>(key, o): ColumnBase<Row, keyof Row & string> & TeamOpts & object

Defined in: packages/sdvtables/src/define.ts:43

Type Parameters​

K​

K extends string

Parameters​

key​

K

o​

Base<Row, K> & Partial<Omit<Opt<ColumnBase<Row, keyof Row & string> & TeamOpts & object, never>, "league">> & Pick<Opt<ColumnBase<Row, keyof Row & string> & TeamOpts & object, never>, "league">

Returns​

ColumnBase<Row, keyof Row & string> & TeamOpts & object


mergeStack()​

mergeStack<K>(key, stack, o?): ColumnBase<Row, keyof Row & string> & MarkOpts<Row> & object

Defined in: packages/sdvtables/src/define.ts:122

reactablefmtr merge_column: key (14px bold) with stack (12px #777) to its right by default.

Type Parameters​

K​

K extends string

Parameters​

key​

K

stack​

keyof Row & string

o?​

Base<Row, K> & Partial<Opt<ColumnBase<Row, keyof Row & string> & MarkOpts<Row> & object, "stack">>

Returns​


mergeStackTeamColor()​

mergeStackTeamColor<K>(key, stack, team, o): ColumnBase<Row, keyof Row & string> & TeamOpts & object

Defined in: packages/sdvtables/src/define.ts:88

Type Parameters​

K​

K extends string

Parameters​

key​

K

stack​

keyof Row & string

team​

keyof Row & string

o​

Base<Row, K> & Partial<Omit<Opt<ColumnBase<Row, keyof Row & string> & TeamOpts & object, "team" | "stack">, "league">> & Pick<Opt<ColumnBase<Row, keyof Row & string> & TeamOpts & object, "team" | "stack">, "league">

Returns​

ColumnBase<Row, keyof Row & string> & TeamOpts & object


num()​

num<K>(key, o?): ColumnBase<Row, NumericKey<Row>> & object

Defined in: packages/sdvtables/src/define.ts:21

Type Parameters​

K​

K extends string

Parameters​

key​

K

o?​

Base<Row, K> & Partial<Opt<ColumnBase<Row, NumericKey<Row>> & object, never>>

Returns​

ColumnBase<Row, NumericKey<Row>> & object


pct()​

pct<K>(key, o?): ColumnBase<Row, NumericKey<Row>> & object

Defined in: packages/sdvtables/src/define.ts:26

Type Parameters​

K​

K extends string

Parameters​

key​

K

o?​

Base<Row, K> & Partial<Opt<ColumnBase<Row, NumericKey<Row>> & object, never>>

Returns​

ColumnBase<Row, NumericKey<Row>> & object


percentileBar()​

percentileBar<K>(key, o?): ColumnBase<Row, NumericKey<Row>> & object

Defined in: packages/sdvtables/src/define.ts:67

Type Parameters​

K​

K extends string

Parameters​

key​

K

o?​

Base<Row, K> & Partial<Opt<ColumnBase<Row, NumericKey<Row>> & object, never>>

Returns​

ColumnBase<Row, NumericKey<Row>> & object


rank()​

rank<K>(key, o?): ColumnBase<Row, NumericKey<Row>> & object

Defined in: packages/sdvtables/src/define.ts:30

Type Parameters​

K​

K extends string

Parameters​

key​

K

o?​

Base<Row, K> & Partial<Opt<ColumnBase<Row, NumericKey<Row>> & object, never>>

Returns​

ColumnBase<Row, NumericKey<Row>> & object


sparkbar()​

sparkbar<K>(key, o?): ColumnBase<Row, SeriesKey<Row>> & ColorRefOpts<Row> & SeriesChartOpts & object

Defined in: packages/sdvtables/src/define.ts:141

reactablefmtr react_sparkbar on an array column (defaults: slategray bars, 100 x 22px, not sortable).

Type Parameters​

K​

K extends string

Parameters​

key​

K

o?​

Base<Row, K> & Partial<Opt<ColumnBase<Row, SeriesKey<Row>> & ColorRefOpts<Row> & SeriesChartOpts & object, never>>

Returns​


sparkline()​

sparkline<K>(key, o?): ColumnBase<Row, SeriesKey<Row>> & ColorRefOpts<Row> & SeriesChartOpts & object

Defined in: packages/sdvtables/src/define.ts:136

reactablefmtr react_sparkline on an array column (defaults: slategray, 1.5px line, chartWidth 100 x 22px (taller with labels), not sortable; statline / bandline red, labels 0.8em with 0 decimals).

Type Parameters​

K​

K extends string

Parameters​

key​

K

o?​

Base<Row, K> & Partial<Opt<ColumnBase<Row, SeriesKey<Row>> & ColorRefOpts<Row> & SeriesChartOpts & object, never>>

Returns​


tally()​

tally(keys, o?): ColumnBase<Row, NumericKey<Row>> & object

Defined in: packages/sdvtables/src/define.ts:39

Parameters​

keys​

readonly [NumericKey<Row>, NumericKey<Row>]

o?​

Base<Row, NumericKey<Row>> & Partial<Opt<ColumnBase<Row, NumericKey<Row>> & object, "keys">>

Returns​

ColumnBase<Row, NumericKey<Row>> & object


teamColorBar()​

teamColorBar<K>(key, o): ColumnBase<Row, keyof Row & string> & TeamOpts & object

Defined in: packages/sdvtables/src/define.ts:94

Type Parameters​

K​

K extends string

Parameters​

key​

K

o​

Base<Row, K> & Partial<Omit<Opt<ColumnBase<Row, keyof Row & string> & TeamOpts & object, never>, "league">> & Pick<Opt<ColumnBase<Row, keyof Row & string> & TeamOpts & object, never>, "league">

Returns​

ColumnBase<Row, keyof Row & string> & TeamOpts & object


teamColorBg()​

teamColorBg<K>(key, o): ColumnBase<Row, keyof Row & string> & TeamOpts & object

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

Type Parameters​

K​

K extends string

Parameters​

key​

K

o​

Base<Row, K> & Partial<Omit<Opt<ColumnBase<Row, keyof Row & string> & TeamOpts & object, never>, "league">> & Pick<Opt<ColumnBase<Row, keyof Row & string> & TeamOpts & object, never>, "league">

Returns​

ColumnBase<Row, keyof Row & string> & TeamOpts & object


text()​

text<K>(key, o?): ColumnBase<Row, keyof Row & string> & object

Defined in: packages/sdvtables/src/define.ts:20

Type Parameters​

K​

K extends string

Parameters​

key​

K

o?​

Base<Row, K>

Returns​

ColumnBase<Row, keyof Row & string> & object


wordmark()​

wordmark<K>(key, o): ColumnBase<Row, keyof Row & string> & TeamOpts & object

Defined in: packages/sdvtables/src/define.ts:47

Type Parameters​

K​

K extends string

Parameters​

key​

K

o​

Base<Row, K> & Partial<Omit<Opt<ColumnBase<Row, keyof Row & string> & TeamOpts & object, never>, "league">> & Pick<Opt<ColumnBase<Row, keyof Row & string> & TeamOpts & object, never>, "league">

Returns​

ColumnBase<Row, keyof Row & string> & TeamOpts & object