diff --git a/library/Director/Web/Table/QuickTable.php b/library/Director/Web/Table/QuickTable.php index 6a47495c..47052624 100644 --- a/library/Director/Web/Table/QuickTable.php +++ b/library/Director/Web/Table/QuickTable.php @@ -32,9 +32,28 @@ abstract class QuickTable implements Paginatable protected $searchColumns = array(); + protected function getRowClasses($row) + { + return array(); + } + + private function getRowClassesString($row) + { + $classes = $this->getRowClasses($row); + if (is_string($classes)) { + $classes = array($classes); + } + + if (empty($classes)) { + return ''; + } else { + return ' class="' . implode(' ', $classes) . '"'; + } + } + protected function renderRow($row) { - $htm = "