/** * Gets the HTML of this table * @return string */ public function getHtml() { if ($this->actions) { $this->addDecorator(new ModelFieldOptionDecorator(), null, true); } return parent::getHtml(); }
/** * 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(); }