Changes

Add cell class support in base cell template and arg custom rows
Line 11: Line 11:  
_cell_color = {
 
_cell_color = {
 
},
 
},
_cell = [[| 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 18: Line 18:  
},
 
},
 
_custom_row_prefix = "custom_row_",
 
_custom_row_prefix = "custom_row_",
 +
_classes_suffix = "_classes",
 
_text_align_suffix = "_text_align",
 
_text_align_suffix = "_text_align",
 
_bg_color_suffix = "_bg_color",
 
_bg_color_suffix = "_bg_color",
Line 247: Line 248:  
format{self._column_cell_templates["!"] or self._cell,  
 
format{self._column_cell_templates["!"] or self._cell,  
 
colspan = #self._columns, rowspan = 1,  
 
colspan = #self._columns, rowspan = 1,  
 +
classes = self._args[self._custom_row_prefix .. custom_row_key .. self._classes_suffix] or "",
 
text_align = self._args[self._custom_row_prefix .. custom_row_key .. self._text_align_suffix] or self._start_align,  
 
text_align = self._args[self._custom_row_prefix .. custom_row_key .. self._text_align_suffix] or self._start_align,  
 
bg_color = self._args[self._custom_row_prefix .. custom_row_key .. self._bg_color_suffix] or self._transparent,
 
bg_color = self._args[self._custom_row_prefix .. custom_row_key .. self._bg_color_suffix] or self._transparent,
Anonymous user