Skip to content

Commit

Permalink
Added tagName param
Browse files Browse the repository at this point in the history
  • Loading branch information
russ666 committed May 31, 2017
1 parent ce9dd5c commit 0438d14
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Countdown.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ class Countdown extends Widget
*/
public $options = [];

/**
* @var string
*/
public $tagName = 'span';

/**
* @inheritdoc
*/
Expand All @@ -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;
}

/**
Expand Down

0 comments on commit 0438d14

Please sign in to comment.