We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0ee34e4 + d220f43 commit ebfb574Copy full SHA for ebfb574
CookieButton.php
@@ -65,6 +65,11 @@ class CookieButton extends \yii\bootstrap\Widget
65
*/
66
public $cookie = [];
67
68
+ /**
69
+ * @var string the tag to use to render the button
70
+ */
71
+ public $buttonTagName = 'button';
72
+
73
/**
74
* @var string the button type setting (i.e. button or switch).
75
@@ -134,6 +139,7 @@ private function renderButton()
134
139
'label' => $this->encodeLabel ? Html::encode($this->label) : $this->label,
135
140
'encodeLabel' => $this->encodeLabel,
136
141
'options' => ArrayHelper::merge(['data-toggle' => 'button'], $this->options),
142
+ 'tagName' => $this->buttonTagName
137
143
]);
138
144
}
145
0 commit comments