3 declare(strict_types=1);
67 $this->ui_factory = $ui_factory;
68 $this->tpl_factory = $tpl_factory;
70 $this->js_binding = $js_binding;
76 $text = $component->text;
77 $component = $component->withAdditionalOnLoadCode(
function (
$id) use (
$text) {
78 return "id:$text.$id content:$text";
80 $this->bindOnloadCode($component);
82 return $component->text;
92 $binder = $component->getOnLoadCode();
93 $this->js_binding->addOnLoadCode($binder(
"id"));
Registry for resources required by rendered output like Javascript or CSS.
__construct(Factory $ui_factory, TemplateFactory $tpl_factory, \ilLanguage $lng, JavaScriptBinding $js_binding)
registerResources(ResourceRegistry $registry)
Announce resources this renderer requires.
Class ChatMainBarProvider .
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...
TemplateFactory $tpl_factory
trait JavaScriptBindable
Trait for components implementing JavaScriptBindable providing standard implementation.
__construct(string $text)
__construct(string $text)
JavaScriptBinding $js_binding
render(Component $component, DefaultRenderer $default_renderer)
bindOnloadCode(\ILIAS\UI\Component\JavaScriptBindable $component)
Provides methods to interface with javascript.
register(string $name)
Add a dependency.
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Interface for a factory that provides templates.
Interface to be extended by components that have the possibility to bind to Javascript.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...