fixed #74
This commit is contained in:
parent
5ea4bb6dc7
commit
fbb568002a
@ -92,10 +92,7 @@ trait BootstrapWidgetTrait
|
||||
$view = $this->getView();
|
||||
BootstrapPluginAsset::register($view);
|
||||
// 'popover', 'toast' and 'tooltip' plugins not activates via data attributes
|
||||
if (
|
||||
$this->clientOptions !== false
|
||||
|| in_array($name, ['popover', 'toast', 'tooltip'], true)
|
||||
) {
|
||||
if ($this->clientOptions !== false || in_array($name, ['popover', 'toast', 'tooltip'], true)) {
|
||||
$name = ucfirst($name);
|
||||
$id = $this->options['id'];
|
||||
$options = empty($this->clientOptions) ? '{}' : Json::htmlEncode($this->clientOptions);
|
||||
|
@ -59,6 +59,7 @@ class Button extends Widget
|
||||
*/
|
||||
public function run(): string
|
||||
{
|
||||
$this->registerPlugin('button');
|
||||
return Html::tag(
|
||||
$this->tagName,
|
||||
$this->encodeLabel ? Html::encode($this->label) : $this->label,
|
||||
|
Loading…
x
Reference in New Issue
Block a user