Beispiel #1
0
 /**
  * @param \Grido\Grid $grid
  * @param string $name
  * @return \Nette\ComponentModel\Container
  */
 protected function addComponentToGrid($grid, $name)
 {
     $this->grid = $grid;
     //check container exist
     $container = $this->grid->getComponent($this::ID, FALSE);
     if (!$container) {
         $this->grid->addComponent(new \Nette\ComponentModel\Container(), $this::ID);
         $container = $this->grid->getComponent($this::ID);
     }
     return $container->addComponent($this, $name);
 }