예제 #1
0
 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));
     }
 }
예제 #2
0
 protected function onComponentTag(ComponentTag $tag)
 {
     parent::onComponentTag($tag);
     $tag->put('href', 'javascript:;');
 }