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

Dynamic className on cell #745

Open
DimaBur opened this issue Jun 15, 2021 · 0 comments
Open

Dynamic className on cell #745

DimaBur opened this issue Jun 15, 2021 · 0 comments

Comments

@DimaBur
Copy link

DimaBur commented Jun 15, 2021

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,
        },
      };
    },
  }
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant