File modules/template_engine/components/html/component_row/RowComponent.class.php
Last commit: Wed Oct 21 00:26:06 2020 +0200 Jan Dankert Using fieldsets in all templates (replacing the old '')
1 <?php 2 3 namespace template_engine\components\html\component_row; 4 5 use template_engine\components\html\Component; 6 use template_engine\element\CMSElement; 7 8 class RowComponent extends Component 9 { 10 11 public $class = ''; 12 13 public $header = false; 14 15 public $id = ''; 16 17 public function createElement() 18 { 19 $row = new CMSElement('tr' ); 20 21 if ($this->class) 22 $row->addStyleClass($this->class); 23 24 if ($this->header) 25 $row->addStyleClass('table-header'); 26 27 if ($this->id) 28 $row->addAttribute('data-id',$this->id); 29 30 return $row; 31 } 32 }
Downloadmodules/template_engine/components/html/component_row/RowComponent.class.php
History Wed, 21 Oct 2020 00:26:06 +0200 Jan Dankert Using fieldsets in all templates (replacing the old '') Wed, 14 Oct 2020 22:36:29 +0200 Jan Dankert Refactoring: Fixed the namespace in component classes, now the are able to be load by the standard autoloader. Wed, 14 Oct 2020 22:20:22 +0200 Jan Dankert Refactoring: Renamed component folders, because 'if' is no valid namespace fragment.