Node red dashboard UI table

Hi all, I have a simple ui_table in node red dashboard. The table may contain large number of rows. I want to add 2 buttons in that dashboard to scroll up and scroll down through the table. Is there any solution for this?

Thank you

Use pagination
ui-table is based on tabulator 4.7 Tabulator | JavaScript Tables & Data Grids
eg.

[{"id":"89795d45a2d236fb","type":"inject","z":"d1395164b4eec73e","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":540,"y":5660,"wires":[["d4dce9b4.1f2588"]]},{"id":"d4dce9b4.1f2588","type":"function","z":"d1395164b4eec73e","name":"table with n rows as array","func":"msg.payload=[];\nfor (let i=0; i<60; i++) {\n    msg.payload.push({\"id\":i,\"timestamp\":Date.now(),\"text\":\"this is line\"+i})\n}\nmsg.ui_control = {\n    tabulator:{\n        pagination:\"local\",\n        paginationSize:10,\n    }\n}\n\nreturn msg;","outputs":1,"timeout":"","noerr":0,"initialize":"","finalize":"","libs":[],"x":791,"y":5680,"wires":[["b075d2ac.a69f3"]]},{"id":"b075d2ac.a69f3","type":"ui_table","z":"d1395164b4eec73e","group":"2d4fe667.28f8ba","name":"","order":18,"width":"17","height":"5","columns":[{"field":"id","title":"id","width":"","align":"right","formatter":"plaintext","formatterParams":{"target":"_blank"}},{"field":"timestamp","title":"Timestamp","width":"","align":"left","formatter":"plaintext","formatterParams":{"target":"_blank"}},{"field":"text","title":"Text","width":"","align":"left","formatter":"plaintext","formatterParams":{"target":"_blank"}}],"outputs":1,"cts":true,"x":1116,"y":5726,"wires":[[]]},{"id":"2d4fe667.28f8ba","type":"ui_group","name":"demo","tab":"1caa8458.b17814","order":2,"disp":true,"width":"18","collapse":false,"className":""},{"id":"1caa8458.b17814","type":"ui_tab","name":"Demo","icon":"dashboard","order":2,"disabled":false,"hidden":false}]

Thank you for your response. This process will solve my purpose.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.