Reverted closeButton

Reverted name to ```closeButton``` to be in sync with the bootstrap ```Alert``` widget.
This commit is contained in:
Kartik Visweswaran
2013-11-21 15:36:43 +05:30
parent 62493188a2
commit b979d3b024

View File

@ -37,7 +37,7 @@ class Alert extends \yii\bootstrap\Widget
/**
* @var array the options for rendering the close button tag.
*/
public $closeButtonOptions = [];
public $closeButton = [];
public function init()
{
@ -56,7 +56,7 @@ class Alert extends \yii\bootstrap\Widget
echo \yii\bootstrap\Alert::widget([
'body' => $message,
'closeButton' => $this->closeButtonOptions,
'closeButton' => $this->closeButton,
'options' => $this->options
]);