|
|
@ -168,7 +168,7 @@ class Modal extends Widget |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
protected function renderToggleButton() |
|
|
|
protected function renderToggleButton() |
|
|
|
{ |
|
|
|
{ |
|
|
|
if ($this->toggleButton !== null) { |
|
|
|
if ($this->toggleButton !== false) { |
|
|
|
$tag = ArrayHelper::remove($this->toggleButton, 'tag', 'button'); |
|
|
|
$tag = ArrayHelper::remove($this->toggleButton, 'tag', 'button'); |
|
|
|
$label = ArrayHelper::remove($this->toggleButton, 'label', 'Show'); |
|
|
|
$label = ArrayHelper::remove($this->toggleButton, 'label', 'Show'); |
|
|
|
if ($tag === 'button' && !isset($this->toggleButton['type'])) { |
|
|
|
if ($tag === 'button' && !isset($this->toggleButton['type'])) { |
|
|
|