Skip to main content

TableLink

Defined in: js-api/src/data.ts:313

A link between two tables, made by Data.linkTables: changes to the first table's current row, mouse-over row, filter or selection are applied to the second one until detach is called.

Example​

const link = grok.data.linkTables(t1, t2, ['id'], ['id'], [DG.SYNC_TYPE.SELECTION_TO_FILTER]);
link.detach();

See​

https://public.datagrok.ai/js/samples/data-frame/join-link/link-tables-detach

Constructors​

Constructor​

new TableLink(dart): TableLink

Defined in: js-api/src/data.ts:316

Parameters​

ParameterType
dartany

Returns​

TableLink

Properties​

PropertyModifierTypeDefined in
dartpublicanyjs-api/src/data.ts:314

Methods​

detach()​

detach(): void

Defined in: js-api/src/data.ts:323

Removes the link: changes to the first table no longer reach the second one, and what the link set there is reset. A "to filter" link refilters the second table without it (its other filters stay), a "to selection" link clears the second table's selection, and "row to row" clears its current row. Calling it again does nothing.

Returns​

void