Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
Nested {{if}} in igGrid html temlplate

I've read this question here about multiple if blocks inside a template, but my question is a little different. I'm needed a nested if, so more like:

{{if condition}}


{{if anotherCondition}}

<added html>



If this is the same answer as the other, just let me know.

My use case is I'm needing to format the color and add a symbol to a cell with independent conditions. so basically if cellValue == 'this': color it red, and if cellValueOfADifferentCellInSameRow == 'somethingElse', then add a symbol next to the template in the cell.

I'm using a template for the color right now, and tried using a formatter for the other condition, but the formatter and template don't play together.

Any suggestions?



No Data
Reply Children
No Data