Skip to content

Unable to create a button such as "show more" at the end of the sub row list in analytical table(tree Table) to handle pagination #3891

@roshnijalan97new

Description

@roshnijalan97new

Bug Description

A clear and concise description of what the bug is.
Unable to create a button such as "show more" in sub rows at the end of the list in the analytical table(tree Table) to handle pagination.

Expected Behavior

A clear and concise description of what you expect to happen.
There should be some feature to attach the reactNode component at the end of the sub row list.

Steps to Reproduce

  1. Create an analytical table and set "isTreeTable" to true.
  2. Try to handle the number of sub-rows using a button("show more") at the end of sub row list.

Ex:

const data = {
  name: "Greg Miller",
  age: 35,
  friend: {
      name: "Rose Franco",
      age: 32,
  },
  status: "None",
  subRows: [
      {
          name: "Rick DeAngelo",
          age: 25,
          friend: {
              name: "Susanne Franco",
              age: 37,
          },
          status: "None",
      },
  ],
};


const renderRowSubComponent = (row): ReactNode => {
                 if(row.subRows)
                {
                        return (<Button>Show More</Button>);
                 }
                return null;
}
<AnalyticalTable
data={tableData}
  isTreeTable
  renderRowSubComponent={renderRowSubComponent}
coloumn={<>
<TableColoumn >Name</TableColoumn >
<TableColoumn >Age</TableColoumn >
<TableColoumn >Friend Name</TableColoumn >
<TableColoumn >Status</TableColoumn >
</>}
/>

The sandbox template is : https://codesandbox.io/s/upbeat-lehmann-jdc83j?file=/src/App.js

Priority

  • Low
  • Medium
  • [ X ] High
  • Very High

The priority indicates the severity of the issue. To set the appropriate priority consider the following criteria:

  • Breaks entire application or system - High or Very High
  • Accessibility issue - Medium or High
  • Functional issue - Medium or High
  • Visual issue - Low or Medium

Note: The priority might be re-evaluated by the issue processor.

Stakeholder Info (if applicable)

  • Organization: {...}
  • Business impact: {...}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    🆕 New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions