sJsCode = $sJSCode; $this->sUrl = '#'; $this->aIncludeJSFiles = $aIncludeJSFiles; } /** @ignore */ public function GetMenuItem() { // Note: the semicolumn is a must here! return [ 'label' => $this->GetLabel(), 'onclick' => $this->GetJsCode().'; return false;', 'url' => $this->GetUrl(), 'css_classes' => $this->GetCssClasses(), 'icon_class' => $this->sIconClass, 'tooltip' => $this->sTooltip, ]; } /** @ignore */ public function GetLinkedScripts() { return $this->aIncludeJSFiles; } /** @ignore */ public function GetJsCode() { return $this->sJsCode; } /** @ignore */ public function GetUrl() { return $this->sUrl; } }