axa-ch-webhub-cloud / pattern-library

AXA CH UI component library. Please share, comment, create issues and work with us!
https://axa-ch-webhub-cloud.github.io/plib-feature/develop
125 stars 18 forks source link

AXA Sortable Table #2432

Open francescoRovetto opened 1 year ago

francescoRovetto commented 1 year ago

Hi all, after discussing about a certain issue on the Slack board, we would like to apply for a new feature.

We need a data limiter in the AXA Sortable Table so that we can limit the amount of shown rows and still be able to sort over all data. Until now, we limit the amount of shown data and have a "show more" button to add from the pool of thousands of rows. This results, that the sort function is only applied to the shown rows, not to the thousands of rows outside of the AXA Table Sortable.

We need to have an optional limiter in axa sortable table like "limiter={15}", which limits shown data to 15 rows and the sort function still sorts over all data, also the hidden ones.

short description of the way we would imagine it to work: If more data available in the modal than the limited number of rows, then show an "add more" button. This "add more" button adds as many rows as assigned to "limiter" - in this case 15 more. Except there are not more left, than add the rest of them.

francescoRovetto commented 1 year ago

the conversion in the slack chat:

2023-03-31_172702