Passing unique parameters for each row of the table using an embedded view in the column

I have a table that is using an embedded view in the last column, and this embedded view contains buttons. I want to pass parameters for each row to enable or disable the button for each row of this table.

Captura de tela 2024-08-13 091254

I want the button to be enabled or disabled based on a column in the table.

The view params you specify in the table's props.columns are constants for the entire column.

The view will automatically be passed a value parameter, if it exists in the view, containing the cell value for the row and column. It will also automatically receive a rowData parameter, if it exists in the view, containing the entire row's data.

You must define these params in your view, exactly as shown, to get the values at runtime. (No binding.)

Do I need to create a rowData parameter so that my embedded view can receive this parameter?

Yes, in the embedded view. Not in the table's props.columns. Then the embedded view can access view.params.rowData.somekey to use the somekey column's value in its component enable binding.

(It helps when designing the embedded view to paste a sample row's data in the parameter's value. But you really only need to include the keys that matter for your bindings inside the embedded view.)