19 declare(strict_types=1);
    41         private Render\Loader $component_renderer_loader,
    51         $root = $root ?? $this;
    53         if (is_array($component)) {
    55             foreach ($component as $_component) {
    56                 $out .= $root->render($_component);
    77         $root = $root ?? $this;
    80         if (is_array($component)) {
    81             foreach ($component as $_component) {
    82                 $out .= $root->renderAsync($_component);
    85             $out = $this->
render($component, $root) . $this->java_script_binding->getOnLoadCodeAsync();
   100         return $this->component_renderer_loader->getRendererFor($component, $this->
getContexts());
   119         $this->contexts[] = $component;
   128         array_pop($this->contexts);
 render($component, ?Renderer $root=null)
Render given component.If an array of components is passed, this method returns a concatenated output...
 
pushContext(Component $component)
Adds a component to the current context stack. 
 
An entity that renders components to a string output. 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
popContext()
Removes the most recently added component from the current context stack. 
 
__construct(private Render\Loader $component_renderer_loader, private JavaScriptBinding $java_script_binding,)
 
renderAsync($component, ?Renderer $root=null)
Same as render, except that this version also returns any javascript code bound to the on load event...
 
getContexts()
Returns the current context stack, where most recently added components are last. ...
 
Provides methods to interface with javascript. 
 
getRendererFor(Component $component)
Get a renderer for a certain Component class.