mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-10 02:13:17 +08:00
Reverted closeButton
Reverted name to ```closeButton``` to be in sync with the bootstrap ```Alert``` widget.
This commit is contained in:
@ -37,7 +37,7 @@ class Alert extends \yii\bootstrap\Widget
|
|||||||
/**
|
/**
|
||||||
* @var array the options for rendering the close button tag.
|
* @var array the options for rendering the close button tag.
|
||||||
*/
|
*/
|
||||||
public $closeButtonOptions = [];
|
public $closeButton = [];
|
||||||
|
|
||||||
public function init()
|
public function init()
|
||||||
{
|
{
|
||||||
@ -56,7 +56,7 @@ class Alert extends \yii\bootstrap\Widget
|
|||||||
|
|
||||||
echo \yii\bootstrap\Alert::widget([
|
echo \yii\bootstrap\Alert::widget([
|
||||||
'body' => $message,
|
'body' => $message,
|
||||||
'closeButton' => $this->closeButtonOptions,
|
'closeButton' => $this->closeButton,
|
||||||
'options' => $this->options
|
'options' => $this->options
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user