You are here

protected function HTMLExporter::collapseCell in Loft Data Grids 7.2

Same name and namespace in other branches
  1. 6.2 vendor/aklump/loft_data_grids/src/AKlump/LoftDataGrids/HTMLExporter.php \AKlump\LoftDataGrids\HTMLExporter::collapseCell()

Collapse a single cell in a row.

Parameters

array $cell:

Return value

string

Overrides CSVExporter::collapseCell

File

vendor/aklump/loft_data_grids/src/AKlump/LoftDataGrids/HTMLExporter.php, line 131

Class

HTMLExporter
Class HTMLExporter

Namespace

AKlump\LoftDataGrids

Code

protected function collapseCell($cell, $column) {

  // We will add a class to this td based on the column label.
  $this->format->left = '<td class="' . $this
    ->cssSafe('colgroup-' . $column) . '">';
  return parent::collapseCell($cell, $column);
}