/** * Assign js action for popup opening and convert object to html string. * * @param bool $destroy * * @return string */ public function toString($destroy = true) { $this->addAction('onclick', $this->getPopupAction()); return parent::toString(); }