Changes
Add cell class support in base cell template and arg custom rows
_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 = {
},
},
_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",
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,