19declare(strict_types=1);
38 protected UIFactory $ui_factory,
59 $content[] = $this->ui_factory->messageBox()->info(
60 $this->presenter->utilities()->txt(
'meta_full_editor_navigation_info')
63 if ($sub->isScaffold()) {
66 $sub_content = $this->panel_content->content(
72 foreach ($sub_content as $type => $entity) {
73 if ($type === ContentType::MAIN) {
77 yield $type => $entity;
81 $panel = $this->ui_factory->panel()->standard(
82 $this->presenter->elements()->name($element),
85 yield ContentType::MAIN => $panel;
98 if (!$sub->isScaffold()) {
101 $create_modal = $this->actions->getModal()->create(
106 $buttons[] = $this->actions->getButton()->create(
107 $create_modal->getFlexibleSignal(),
113 $dropdown = $this->ui_factory->dropdown()
115 ->withLabel($this->presenter->utilities()->txt(
'add'));
116 yield ContentType::TOOLBAR => $dropdown;
Builds a Color from either hex- or rgb values.
createModalsAndDropdown(PathInterface $base_path, ElementInterface $element, ?RequestForFormInterface $request)
__construct(protected Actions $actions, protected UIFactory $ui_factory, protected PresenterInterface $presenter, protected PanelContent $panel_content)
content(PathInterface $base_path, ElementInterface $element, ?RequestForFormInterface $request)
This describes a Standard Dropdown.
This describes how a panel could be modified during construction of UI.