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 #3892
-
Bug DescriptionA clear and concise description of what the bug is. Expected BehaviorA clear and concise description of what you expect to happen. Steps to Reproduce
The sandbox template is: https://codesandbox.io/s/upbeat-lehmann-jdc83j?file=/src/App.js Priority
The priority indicates the severity of the issue. To set the appropriate priority consider the following criteria:
Note: The priority might be re-evaluated by the issue processor. Stakeholder Info (if applicable)
|
Beta Was this translation helpful? Give feedback.
Replies: 11 comments
-
You are mixing up two different components here. The Since I believe (please correct me if I'm wrong), that this issue is about the AnalyticalTable, I'm going to forward the issue to the ui5-webcomponents-react repo. Please recheck your example. If the issue still occurs, and it's not connected to an already opened issues regarding the sub-components implementation, please create a reproducible example by leveraging this codeSandbox template. |
Beta Was this translation helpful? Give feedback.
-
Code Sandbox template - https://codesandbox.io/s/upbeat-lehmann-jdc83j?file=/src/App.js |
Beta Was this translation helpful? Give feedback.
-
The button is displayed as expected for me. Could you elaborate on where you see a problem? |
Beta Was this translation helpful? Give feedback.
-
I want this button to appear at the end of the subrow list @Lukas742 |
Beta Was this translation helpful? Give feedback.
-
For this you could either use a flag in your data structure (easiest and most efficient way), or calculate which row is the last one and persist it in a Set or similar. Since this is not a bug or a feature request, but a question about implementation details, I'm going to convert this issue into a discussion. |
Beta Was this translation helpful? Give feedback.
-
The Button is coming inside the last row element, I don't want it like that, I want it to be in a separate row. |
Beta Was this translation helpful? Give feedback.
-
How can I implement pagination here? |
Beta Was this translation helpful? Give feedback.
-
This is unfortunately not supported.
You cannot add or remove rows without updating the data array, so I don't see another way to achieve such (or similar) behavior than I provided earlier with the codeSandbox. All rows that are contained inside your data array will be rendered, either directly or when the parent row is expanded. |
Beta Was this translation helpful? Give feedback.
This is unfortunately not supported.
You cannot add or remove rows without updating the data array, so I don't see another way to achieve such (or similar) behavior than I provided earlier with the codeSandbox. All rows that are contained inside your data array will be rendered, eithe…