if colors[idx]:
                    cell['cellProps'].setAttribute(
                        'backgroundcolor', colors[idx])