I have problems referencing this column and I just don't get it.
Any help would be highly appreciated!
I have problems referencing this column and I just don't get it.
Any help would be highly appreciated!
{{ table_order_types.selectedSourceRow.id }}
You can also use {{ table_order_types.selectedRowKey }}
(if it is set up as your primary key in your table)
Hey @Robert84! Just to summarize the above points, there are a few different ways to access the data associated with the currently selected row.
The syntax that you're using here is almost right, but was deprecated when we released the new version of the Table component. The correct syntax is now table_order_types.selectedRow.id
.
The only difference between selectedRow
and selectedSourceRow
is that the former returns the row data as it has been mapped for display in the table, whereas the latter returns the raw row data as it exists in the source.
To @MiguelOrtiz's point, you can also choose to directly access the primary key associated with the selected row with table_order_types.selectedRowKey
.
I hope that helps!