Example #1
0
 /**
  * Returns table html element of grid.
  * @return \Nette\Utils\Html
  */
 public function getTablePrototype()
 {
     if ($this->tablePrototype === NULL) {
         $this->tablePrototype = \Nette\Utils\Html::el('table');
         $this->tablePrototype->id($this->getName());
     }
     return $this->tablePrototype;
 }
Example #2
0
 /**
  * Returns table html element of grid.
  * @return \Nette\Utils\Html
  */
 public function getTablePrototype()
 {
     if ($this->tablePrototype === NULL) {
         $this->tablePrototype = \Nette\Utils\Html::el('table');
         $this->tablePrototype->id($this->getName())->class[] = 'table table-striped table-hover';
     }
     return $this->tablePrototype;
 }