Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

expandedRowRender and colspan #1164

Open
harikt opened this issue Jul 26, 2024 · 0 comments
Open

expandedRowRender and colspan #1164

harikt opened this issue Jul 26, 2024 · 0 comments

Comments

@harikt
Copy link

harikt commented Jul 26, 2024

Hi,

I am rendering a table, which has an expandedRowRender: (record) => <ExpandedLazyLoadedRow record={record} />, function to render a component once data is fetched from the api.

Currently the table renders like

image

What I am trying to do is render the td instead of this

<tr class="rc-table-expanded-row rc-table-expanded-row-level-1">
  <td class="rc-table-cell" colspan="6">
      <div style="display: flex;">
        <div style="flex: 1 1 0%; padding-right: 8px;">Expanded Content 1 (colspan 2)</div>
        <div style="flex: 3 1 0%;">Expanded Content 2 (colspan 4)</div>
      </div>
  </td>
</tr>

to

<tr class="rc-table-expanded-row rc-table-expanded-row-level-1">
  <td class="rc-table-cell" colspan="2">
      Some content
  </td>
  <td class="rc-table-cell" colspan="4">
      Some content
  </td>
</tr>

So that it aligns correctly with the parent column. Any inputs is really appreciated.

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant