I have a large datatable in a Shiny app and would like to highlight the diagonal, using logic something like if rowNum == colNum then 'blue' else 'white'.
The rowCallback DT option would let me style by row number, but I can't find anything in the docs that would do the equivalent for column number at the same time.
The best idea I have is to create ~200 extra boolean columns in the table just to determine whether each cell is highlighted or not, hiding them, and using formatStyle(valueColumns = 201:400) to style the others. But that seems like massive overkill here. Any bright ideas?

