Browse Source

Reverted closeButton

Reverted name to ```closeButton``` to be in sync with the bootstrap ```Alert``` widget.
tags/2.0.0-beta
Kartik Visweswaran 11 years ago
parent
commit
b979d3b024
  1. 4
      apps/advanced/frontend/widgets/Alert.php

4
apps/advanced/frontend/widgets/Alert.php

@ -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
]); ]);

Loading…
Cancel
Save