Skip to main content

    convertToColumns

    Deprecated

    The convertToColumns function will be removed together with the DataTable, consider migrating to DataTableV2 and using convertToColumnsV2. See migration guide and convertToColumnsV2.

    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