Hi,
I have have three rows in my slice in Compact form:
{
"uniqueName": "DIA"
},
{
"uniqueName": "DIA_SEMANA"
},
{
"uniqueName": "TIPO_DIA"
},
Let's say when TIPO_DIA has the value of "Sab" i need to change the color of my parent row.
When i try to costumize in customizeCell, i don't have no reference to the parent row so i can't change the css.
Is there a way to do this?
Thanks in advance,
Hi Marcos,
Thank you for raising your support ticket.
We've prepared a sample demonstrating how to implement something similar with customizeCell()
: https://jsfiddle.net/flexmonster/nwz6bmr4/.
Here's how it works:
customizeCell()
handler function, all "parent" rows are detected and their cells are assigned the .fm-expandable-N
class, which will be used later.
rowsArrToPaint
array variable.
customizeCell()
handler execution is finished, the aftergriddraw
event is triggered. We assign the addExtraStyles()
handler for this event – the function creates a new <style >
tag, fills it with styles to paint the necessary rows, and appends the tag to the document head.
As a result, only the "parent" nodes with the "Germany" child members are painted.
Please let us know if this helps.
Best regards,
Mykhailo
Hi,
From what I saw in your example, I think this is really what was needed, I will forward it to the department that is implementing the functionality that uses the table in which this was necessary, if i receive any feedback with any questions, I will contact you .
Thank you very much,
Marcos,
Thank you for your response, good to hear the suggested solution seems valid to you!
As always, feel free to reach out in case there is anything else we can help you with.
Regards,
Mykhailo