diff --git a/widgets/Growl.php b/widgets/Growl.php
index 63b2390..1cda561 100644
--- a/widgets/Growl.php
+++ b/widgets/Growl.php
@@ -2,7 +2,7 @@
/**
* @copyright Copyright © Kartik Visweswaran, Krajee.com, 2014
* @package yii2-widgets
- * @version 2.9.0
+ * @version 2.8.0
*/
namespace kartik\widgets;
@@ -46,9 +46,10 @@ class Growl extends Widget
public $title = '';
/**
- * @var string the url for navigation on clicking the alert
+ * @var string the url to redirect to on clicking the alert. If this is null
or not set,
+ * the alert will not be clickable.
*/
- public $url = '';
+ public $linkUrl = '';
/**
* @var bool show title separator. Only applicable if `title` is set.
@@ -76,6 +77,26 @@ class Growl extends Widget
*/
public $useAnimation = true;
+ /**
+ * @var array the HTML attributes for the growl icon container.
+ */
+ public $iconOptions = [];
+
+ /**
+ * @var array the HTML attributes for the growl title container.
+ */
+ public $titleOptions = [];
+
+ /**
+ * @var array the HTML attributes for the growl message body.
+ */
+ public $bodyOptions = [];
+
+ /**
+ * @var array the HTML attributes for the growl url link
+ */
+ public $linkOptions = [];
+
/**
* @var array the bootstrap growl plugin configuration options
* @see http://bootstrap-growl.remabledesigns.com/
@@ -109,7 +130,7 @@ protected function initOptions()
'message' => $this->body,
'icon' => $this->icon,
'title' => $this->title,
- 'url' => $this->url
+ 'url' => $this->linkUrl
];
$this->pluginOptions['type'] = $this->type;
if (empty($this->options['class'])) {
@@ -117,15 +138,17 @@ protected function initOptions()
} else {
Html::addCssClass($this->options, 'alert');
}
- $divider = !empty($this->showSeparator) && !empty($this->title) ? '