19declare(strict_types=1);
41 private Render\Loader $component_renderer_loader,
52 $this->
language->loadLanguageModule(
'ui');
54 $root = $root ?? $this;
57 if (is_array($component)) {
58 foreach ($component as $_component) {
59 $out .= $root->render($_component);
80 $root = $root ?? $this;
83 if (is_array($component)) {
84 foreach ($component as $_component) {
85 $out .= $root->renderAsync($_component);
88 $out = $this->
render($component, $root) . $this->java_script_binding->getOnLoadCodeAsync();
103 return $this->component_renderer_loader->getRendererFor($component, $this->
getContexts());
122 $this->contexts[] = $component;
131 array_pop($this->contexts);
Renderer that dispatches rendering of UI components to a Renderer found in the same namespace as the ...
getContexts()
Returns the current context stack, where most recently added components are last.
pushContext(Component $component)
Adds a component to the current context stack.
popContext()
Removes the most recently added component from the current context stack.
getRendererFor(Component $component)
Get a renderer for a certain Component class.
renderAsync($component, ?Renderer $root=null)
Same as render, except that this version also returns any javascript code bound to the on load event,...
render($component, ?Renderer $root=null)
Render given component.If an array of components is passed, this method returns a concatenated output...
__construct(private Render\Loader $component_renderer_loader, private JavaScriptBinding $java_script_binding, private \ILIAS\Language\Language $language,)
A component is the most general form of an entity in the UI.
An entity that renders components to a string output.
Provides methods to interface with javascript.
An entity that renders components to a string output.
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.