resolveColumn

Returns the column a binding names as the strings the dataset holds, or null when the value is not a column binding or the dataset has not arrived.

@internote/canvas-sdkFunction
On this page
import { resolveColumn } from '@internote/canvas-sdk';

#Signature

(
    datasets: Record<string, ChalkDataset> | undefined,
    value: unknown,
): string[] | null

#Parameters

datasets
The document's datasets, such as ctx.datasets.
value
An attribute value that may be a #id.column binding.

#Example

const countries = resolveColumn(ctx.datasets, attrs.keys);

Declared in packages/canvas-sdk/src/data/resolve-column.ts:40.

Last updated