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-sdkOn this page
import { resolveColumn } from '@internote/canvas-sdk';#Signature
(
datasets: Record<string, ChalkDataset> | undefined,
value: unknown,
): string[] | null#Parameters
datasetsThe document's datasets, such as
ctx.datasets.valueAn 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.