• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Announcement

Collapse
No announcement yet.

Changing Cell Color

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Changing Cell Color

    I'm trying to use setBackgroundColor and setTextColor in a grid. If I use either, the text in my cell disappears. The option for background color does change the cell background. I'm using the May version of 6.3.

  • #2
    Can you provide the relevant details of your code so we can try to replicate it?

    Comment


    • #3
      I think I fixed the problem. I forgot to include return v;

      However, can you explain how to use these methods in conjunction with one another?

      Comment


      • #4
        It appears it only honors the last call to either setBackgroundColor or setTextColor.
        You could always just provide html markup:
        Code:
        return `<div style="color:red;background:blue;">${v}</div>`;

        Comment

        Working...
        X