|
|
@@ -39,35 +39,9 @@ class ConsoleButton extends ButtonDataTableModalAction implements ClientArea
|
|
|
{
|
|
|
}
|
|
|
|
|
|
- public function setRawUrl($url)
|
|
|
+ public function setConsoleUrl($url)
|
|
|
{
|
|
|
- $this->rawUrl = $url;
|
|
|
-
|
|
|
- return $this;
|
|
|
- }
|
|
|
-
|
|
|
- public function setRedirectParams($paramsList)
|
|
|
- {
|
|
|
- $this->redirectParams = $paramsList;
|
|
|
-
|
|
|
- $this->updateHtmlAttributesByRedirectParams();
|
|
|
-
|
|
|
+ $this->addHtmlAttribute('onclick', $url);
|
|
|
return $this;
|
|
|
}
|
|
|
-
|
|
|
- protected function updateHtmlAttributesByRedirectParams()
|
|
|
- {
|
|
|
- foreach ($this->redirectParams as $key => $value)
|
|
|
- {
|
|
|
- $this->updateHtmlAttribute($key, $value);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- protected function updateHtmlAttribute($key, $value)
|
|
|
- {
|
|
|
- if (strpos($value, ':') === 0)
|
|
|
- {
|
|
|
- $this->addHtmlAttribute(':data-' . $key , 'dataRow.' . trim($value, ':'));
|
|
|
- }
|
|
|
- }
|
|
|
}
|