Skip to main content

convertToColumns

The convertToColumns function takes a set of Grail field types and converts it to table columns that can be used in the DataTable.

Import

import { convertToColumns } from '@dynatrace/strato-components-preview/conversion-utilities';

Use cases

Pass an array in the format of RangedFieldTypes and receive an array of columns that can be plugged into the DataTable.

Convert query records to table columns

CodeSandbox
Still have questions?
Find answers in the Dynatrace Community