protected function onComponentTag(ComponentTag $tag) { parent::onComponentTag($tag); $url = $this->urlForListener($this); $tag->put('href', $this->popupSettings == null ? $url : 'javascript:;'); if ($this->popupSettings != null) { $properties = $this->popupSettings; $tag->put('onClick', sprintf("javascript:window.open('%s','%s','width=%s,height=%s');", $url, $properties->name, $properties->width, $properties->height)); } }
protected function onComponentTag(ComponentTag $tag) { parent::onComponentTag($tag); $tag->put('href', 'javascript:;'); }