Skip to content

expandedRowRender and colspan #1164

@harikt

Description

@harikt

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.

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