Hi,
I can get the row number on clicking a row on table 1.0. This way I can insert a row with a form or delete with a button. This doesn't seem possible on table 2.0 as there is no such information on the output payload. Is it something that is planned to be added? This is the only thing preventing me to fully migrate to Dashboard 2.0 at the moment.
Thanks
Have you tried adding a debug node set to show full msg?
Also, from the docs:
Interaction: Buttons
The
Button
cell type will render a clickable button in the cell. The label of the button will be the corresponding value in your row for the providedkey
. When the button is clicked, theui-table
node will output:{ "payload": <full row object> "column": <column key> "action": "button_click" }
Meaning, you get the full row & if your row has an ID or index, you will get that in the payload. Is that not enough?
If you are already familiar with the dashboard-1.0 table, on dashboard-2.0 you can try https://github.com/omrid01/node-red-dashboard-2-table-tabulator, which uses the same table engine (Tabulator) and supports all row & cell events (e.g. rowClick
, rowDblClick
etc.), as well as direct in-cell user editing
I tried different things and I came to realise that the output payload doesn't give the row if the row is not explicitely written in the input payload.
For example :
Input payload :
Table :
Whether I click on the button or on the row :
It is automatically rendered in the table so imo, the row should be present in the output in any case.
I was hoping to stay with the integrated table but maybe this is a good work around. I will try it, thanks.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.