From 0438d14870b9a7f58b523a0ad0cb5aab40f20e49 Mon Sep 17 00:00:00 2001 From: Ruslan Orel Date: Wed, 31 May 2017 17:46:43 +0300 Subject: [PATCH] Added tagName param --- Countdown.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Countdown.php b/Countdown.php index 85feb6e..db3c825 100644 --- a/Countdown.php +++ b/Countdown.php @@ -30,6 +30,11 @@ class Countdown extends Widget */ public $options = []; + /** + * @var string + */ + public $tagName = 'span'; + /** * @inheritdoc */ @@ -55,7 +60,7 @@ public function run() if (Yii::$app->request->isAjax) $script = Html::tag('script', $this->renderScript()); - return Html::tag('span', '', $this->options) . $script; + return Html::tag($this->tagName, '', $this->options) . $script; } /**