Changes

no edit summary
Line 11: Line 11:  
_cell_color = {
 
_cell_color = {
 
},
 
},
_cell = [[| class="highlighted ${classes}" colspan="${colspan}" rowspan="${rowspan}" style="text-align: ${text_align}; background-color: ${bg_color}; padding:3px;" |${values.value}]],
+
_cell = [[| class="${classes}" colspan="${colspan}" rowspan="${rowspan}" style="text-align: ${text_align}; background-color: ${bg_color}; padding:3px;" |${values.value}]],
 
_empty_cell = [[|]],
 
_empty_cell = [[|]],
 
_column_cell_templates = {
 
_column_cell_templates = {
Line 240: Line 240:  
for _, column in ipairs(self._columns) do
 
for _, column in ipairs(self._columns) do
 
if row_values[column] then
 
if row_values[column] then
 +
if row_values[column].bg_color and row_values[column].bg_color ~= self._transparent then
 +
row_values[column].classes = "highlighted " .. (row_values[column].classes or "")
 +
end
 
table.insert(self._rows, format(self._column_cell_templates[column] or self._cell, row_values[column]))
 
table.insert(self._rows, format(self._column_cell_templates[column] or self._cell, row_values[column]))
 
end
 
end
cssedit, gkautomate
7,064

edits