node-red-dashboard
node-red-dashboard copied to clipboard
ui-table: add inital Row setting to Items per page dropdown
Description
When configuring a ui-table with 5 rows, and the user changes it, it is not possible to go back to the initialy configured setting. Can you please add the row value as defined in the ui-table configuration to the dropdown?
Have you provided an initial effort estimate for this issue?
I am no FlowFuse team member
it is not possible to go back to the initially configured setting.
Can you expand a bit more here please, not sure I follow what the problem is?
Hi Joe,
Sorry for the delay. Sure.
In the Table-UI settings, I as a Dashboard creator can set it to display 5 rows. On Deploy, Dashboard will show 5 rows in the table, even if there are more entries in the array sent to it. The component now allows the Dashboard user to select to display a different number of rows in the dropdown: 10, 25 etc. (not sure which numbers exactly, doing this by heart). When doing so the layout of the page changes to accommodate the user-selected number of rows. All great so far! :)
For the Dashboard user it is not possible to set the number of rows that is displayed back to the original number (5 in this example) that was set by me as the Dashboard crreator. The minimum is 10, which in some cases screws up the Dashboard display. So my request is to add the initial row display number set by me as the Dashboard creator to the dropdown list that the Dashboard user can select. This way the Dashboard user can always get back to the table's initial state (without having to refresh).
Hope this is clearer.. :) Thanks!