Skip to main content

Interface: LinkableTable<Row>

Defined in: packages/sdvplot/src/interact/link.ts:11

The slice of an sdvtables Table that linking needs. Structural, so sdvplot never depends on sdvtables.

Type Parameters​

Row​

Row

Methods​

setExternalFilter()​

setExternalFilter(filter): void

Defined in: packages/sdvplot/src/interact/link.ts:13

Filter the table's rows by a row test (the store's brush region); null clears it.

Parameters​

filter​

RowFilter<Row> | null

Returns​

void


setHover()​

setHover(id): void

Defined in: packages/sdvplot/src/interact/link.ts:17

Light one row by id (the store's first hover id); null clears it. A table holds one hover id.

Parameters​

id​

string | null

Returns​

void


setSelection()​

setSelection(ids): void

Defined in: packages/sdvplot/src/interact/link.ts:15

Select rows by id; the table renders them selected.

Parameters​

ids​

ReadonlySet<string>

Returns​

void


subscribe()​

subscribe(fn): () => void

Defined in: packages/sdvplot/src/interact/link.ts:19

Row hover and click events; returns the unsubscribe function.

Parameters​

fn​

(event) => void

Returns​

() => void