예제 #1
0
 /**
  * Gets the HTML of this table
  * @return string
  */
 public function getHtml()
 {
     if ($this->actions) {
         $this->addDecorator(new ModelFieldOptionDecorator(), null, true);
     }
     return parent::getHtml();
 }
예제 #2
0
 /**
  * Gets the HTML of this table. Makes sure there is a option decorator when there are actions attached to this table
  * @return string
  */
 public function getHtml()
 {
     if ($this->actions) {
         $dataOptionDecorator = new DataOptionDecorator();
         $this->addDecorator($dataOptionDecorator, null, true);
     }
     return parent::getHtml();
 }