viewParams in an embedded view inside of a tableRow

So I know in the column of a table you can make it render a component in each row of that column and apply params that apply to every row, I was wondering if there is a way to assign params for EACH row

What I'm trying to accomplish is assigning a different color for each of the instances in this table
image

So i was just wondering if anything like this is possible?

When you use render mode = "view" in a table column, each cell's view is passed implicit parameters you can use:

  • value for that cell's raw value in the table, and

  • rowData for the entire row's raw data. Your cell view can use that information however it likes.

so if my color component has a 'color' param, inside of the rowdata I would have a color property and pass it there?

No, you must make your render view take the predefined parameter names.

Are you sure you shouldn't just be using row styling? No need for parameters or views.

Also consider applying the styling as a wide cell left-border and displaying the value as clear text. It's much easier to read and may help the 1 in 12 colour-blind men and 1 in 200 colour-blind women among us.

Have a skim through Filtering a table with Named Querie with 3 checkboxes in Ignition Perspective to get an idea of what I'm suggesting.

I have figured it out, let me lay it out I have a column called 'Display-Color-Hexcode' with the render set to 'view' with a component of 'color'

for context once you click this color it will render a color picker in that row. I needed to pass a parameter to each instance in each row so the user has a starting color that is 'prefered' in my program
image

I acheived this by passing the parameter to the data property on the table
like so
image
this sets the color off rip and they can edit them if they want too but do not have too.