qlik-oss / sn-table

table supernova for nebula.js
https://qlik.dev/libraries-and-tools/visualizations/table
MIT License
6 stars 14 forks source link

feat: VIZ-2624-set-size-to-table-snapshot #1035

Closed sharleneaqlik closed 1 year ago

sharleneaqlik commented 1 year ago

A table can be seen as 5 components: 1) the tilte 2) the footer 3) the data area 4) the vertical scroll 5) the horizontal scroll The main area is the table but not include the title

Currently we use the main area to render data area in snapshot or download mode. Expected: We should deduct the footer and scrolls from the main area when render data area in snapshot mode. Both the Pagination and Virtual Table should show content like below.

Fill up with more rows and remove the footer when total number of rows displayed on the screen is more than 100. In the case of rows 10, 25 and 100 show the exact rows if available.

sharleneaqlik commented 1 year ago

@haxxmaxx , you can do the final review since this your last day today. I can add the unit tests separately.

sharleneaqlik commented 1 year ago

@haxxmaxx I have added three test cases where the lowest number of rows should be picked up. ViewState function's test case can be done separately in a different PR.