- Refractoring on the old code base

This commit is contained in:
mcndave committed 2023-03-29 15:11:54 +00:00
1 parent 72940b3615
commit 6aaa05b37d
6 files changed
+53 -52

No files matched your search

+5 -2
View File
@@ -11,12 +11,15 @@ class UiPopup extends UiElement implements Extension {
public string $token = "ui:popup";
public string $tag = "div";
public array $attributes = [
'class' => 'ui-popup',
];
public function __construct(
public string $tag = "div",
) {}
public function parse(\Picea\Compiler\Context &$context, ?string $arguments, string $token, array $options = []) : string
{
return "<?php echo 'ui-popup=\"' . ( new \\" . static::class . "() )->buildAttributes($arguments) . '\"' ?>";