Skip to main content
Nintex Community Menu Bar
Question

how to target row action div from field

  • July 10, 2024
  • 3 replies
  • 16 views

Forum|alt.badge.img+20

3 replies

Forum|alt.badge.img+7

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.fieldRenderers[field.metadata.displaytype][field.mode](field,value);<br>&nbsp;field.item.element.addClass(rowactionClass); //Important!!! after the renderer.



css:

table.nx-skootable-data tbody tr.[YOURROWACTIONCLASS] td div.[CLASSOFTHEICON]{background: green;}






Forum|alt.badge.img+20

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


Forum|alt.badge.img+7

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.