rows.every() Question
rows.every() Question
zgoforth
Posts: 493Questions: 98Answers: 2
Link to test case: https://jsfiddle.net/BeerusDev/940cedtm/89/
I want to use the rows.every() function to get a count of the two different options that a 3rd level row can be. Either green or red based off the condition inside of my createdRow callback.
I am trying to get the row style so I can apply it to a count like so:
if (this.style.backgroundColor === 'red') { classCount.r++; }
Answers
Use
row().node()
notrow().data()
to get thetr
to check the styling.Kevin
https://jsfiddle.net/BeerusDev/940cedtm/89/
I console.log the node, and all of the background colors are as follows:
Maybe you should check for the class that you are adding.
Kevin