SAP / fundamental-ngx

Fundamental Library for Angular is SAP Design System Angular component library
https://sap.github.io/fundamental-ngx
Apache License 2.0
269 stars 129 forks source link

[Platform] Table tree with dynamic data #12268

Open Sherry-Lee opened 3 months ago

Sherry-Lee commented 3 months ago

Is this a bug, enhancement, or feature request?

A feature request

Describe your proposal.

I have tried the tree table sample on StackBlitz and noticed that when there is data without children, the arrow button is hidden. However, when using the tree table with backend data, the response tree data can be massive. In our case, the response data is only at level 0 of the tree. Once we click the expand button for a specific level 0, another request for the children of level 0 will be sent and a response will be received. How should I handle this situation based on our data mechanism and the platform's tree table component? the fdp-column is too fixed.

Which versions of Angular and Fundamental Library for Angular are affected? Please, specify the exact version. (If this is a feature request, use current version.)

0.49.2

mikerodonnell89 commented 3 months ago

If I understand your concern correctly (the fdp-table will not initially be aware that your table rows have children, but they do, you must make a separate API call for that data) - then you can take a look in to using the childDataSource - see this example: https://sap.github.io/fundamental-ngx/#/platform/table/advanced

Not sure what you mean by

fdp-column is too fixed

Could you elaborate on that? Thanks!

Sherry-Lee commented 3 months ago

'fdp-column is too fixed' means that the fdp-column is not flexible. Since fdp-column includes the arrow button, where the arrow button can be found to bind the click event?