Skip to content
This repository was archived by the owner on Mar 2, 2022. It is now read-only.
This repository was archived by the owner on Mar 2, 2022. It is now read-only.

Dynamic className on cell #745

@DimaBur

Description

@DimaBur

Is it possible to add dynamic className to cell? In original table you can return object in render with keys children and props but in pro table you can't return such object.

Example from original Antd table, but it's not possible in proTable:

{
    title: 'Name',
    dataIndex: 'name',
    render: (text, row, index) => {
      if (index < 4) {
        return <a>{text}</a>;
      }
      return {
        children: <a>{text}</a>,
        props: {
          colSpan: 5,
        },
      };
    },
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions