Description of icon
Flex UI
API Reference

ColumnDefinition

A component used to add a column to a DataTable (e.g. QueuesStats․QueuesDataTable)


Component Properties

  • content: function | React.ReactNode

    Renders cell content. If it's a function, it receives DataTable row data as the first argument and DataTable context as the second argument. The render function should return React.ReactNode.

  • header: React.ReactNode

    Header content.

  • headerColSpanKey?: string

    Specify the same key for adjacent columns if you want to merge their headers.

  • name?: string

    Column name is used to add custom classes to cells in the column.

  • subHeader?: React.ReactNode

    Subheader content.

  • sortingFn?: function

    A function that defines sort order. The function should return a negative, zero, or positive value. It receives data for two rows to sort as arguments.

  • sortDirection?: "asc" | "desc"

    sort

  • style?: React.CSSProperties

    style

Need some help?