Example #1
0
 /**
  * Renders a ToggleGroup into the table
  *
  * @param ToggleGroup $group
  *
  * @since 2.0
  */
 protected function renderToggleGroup(ToggleGroup $group)
 {
     $groupLabel = $group->getLabel();
     $this->table->addCell($groupLabel);
     // Build all the radios
     $toggles = '';
     foreach ($group as $toggle) {
         $toggles .= $toggle->getLabel() . $toggle->render($this);
     }
     $this->table->addCell($toggles);
     $this->table->addRow();
     return '';
 }