You are here

function crumbs_UI_Table::tbody in Crumbs, the Breadcrumbs suite 7.2

Parameters

string|null $name: Key to identify the tbody, if another than the main tbody is used.

Return value

crumbs_UI_TableSection

File

lib/UI/Table.php, line 82

Class

crumbs_UI_Table
A class to render HTML tables.

Code

function tbody($name = NULL) {
  if (!isset($name)) {
    return $this->tbody;
  }
  return isset($this->tbodies[$name]) ? $this->tbodies[$name] : ($this->tbodies[$name] = new crumbs_UI_TableSection($this->columns));
}