Пример #1
0
 public function addChild(\blaze\web\component\UIComponent $child)
 {
     if (!$this->useMap && $child instanceof Area) {
         $this->useMap = true;
     }
     return parent::addChild($child);
 }
Пример #2
0
 public function addChild(\blaze\web\component\UIComponent $child)
 {
     if ($this->header == null && $child instanceof DataTableHeader) {
         return $this->header = $child->setParent($this);
     } else {
         if ($this->footer == null && $child instanceof DataTableFooter) {
             return $this->footer = $child->setParent($this);
         } else {
             return parent::addChild($child);
         }
     }
 }
Пример #3
0
 public function addChild(\blaze\web\component\UIComponent $child)
 {
     return parent::addChild($child);
     //        if($child instanceof DataListRow){
     //            $this->rows[] = $child;
     //            return $this;
     //        }else{
     //            // Not possible because of XSD
     //            //return parent::addChild($child);
     //            throw new \blaze\lang\IllegalArgumentException();
     //        }
 }