applying background color to cell having red color text in table
applying background color to cell having red color text in table
Hi Allan,
My table contains red color texts in TD's which shows the difference in the amount. What I want is, when exported to excel I want those cells to apply background fill when exported to excel. please find the below code where we need to apply cell styling for the cells showing the difference in the amount.
https://codepen.io/anon/pen/xJXXPB
how to apply background fill to those particular cells I have marked in the screenshot. Please reply with the code.
Thanks in advance.
S Pankaj Sharma
Replies
Hi @P4nk4j Sh4rm4 ,
This thread here should help - there's an example on what to do.
Cheers,
Colin
The link you have mentioned in your reply shows that if we have a specific text the cell background is applied. This does not help me. Cell position for the negative amounts is not fixed and can't judge whether the negative amount will be greater than the particular value. Is there any other way, which helps to export the exact table styles (whether it is text color or bold style) when exported.
Thanks in advance.
S Pankaj Sharma