Skip to main content

You are close 😛

I tried that myself, but it was impossible from a custom renderer access the buttons in that row.

what I did at the end is add a class to the tr and then define an style for that the icon in the tr with this class:

JS: custom renderer:


skuid.ui.fieldRenderersefield.metadata.displaytype]pfield.mode](field,value);<br>&nbsp;field.item.element.addClass(rowactionClass); //Important!!! after the renderer.



css:


table.nx-skootable-data tbody tr.tYOURROWACTIONCLASS] td div.iCLASSOFTHEICON]{background: green;}






Hey Pablo,

That hit the mark and makes for a clean implementation.

Do you know why I couldn’t target the row action directly from the field renderer snippet?

Thanks,

Pat


I suspect the HTML entities are not in the Dom (or correctly wrapped) when the renderer is executed. The renderers maybe create js objects (or an xml markup) assigned to the tr and when all the table is defined (filters, row actions, fields…) is drawn. But this is what I think.


Reply