Small bugfixe within the UiPopup Widget
This commit is contained in:
parent
6020fa300d
commit
34828f642c
|
@ -22,9 +22,9 @@ class UiPopup extends UiElement implements Extension {
|
||||||
return "<?php echo 'ui-popup=\"' . ( new \\" . static::class . "() )->buildAttributes($arguments) . '\"' ?>";
|
return "<?php echo 'ui-popup=\"' . ( new \\" . static::class . "() )->buildAttributes($arguments) . '\"' ?>";
|
||||||
}
|
}
|
||||||
|
|
||||||
public function buildAttributes(string $name, array $variables = []) : string
|
public function buildAttributes(string $name, array $variables = [], $options = []) : string
|
||||||
{
|
{
|
||||||
return htmlentities(json_encode([ "name" => $name, "vars" => $variables ], JSON_HEX_APOS | JSON_HEX_QUOT), ENT_QUOTES, 'UTF-8');
|
return htmlentities(json_encode([ "name" => $name, "vars" => $variables, "options" => $options ], JSON_HEX_APOS | JSON_HEX_QUOT), ENT_QUOTES, 'UTF-8');
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue