3 declare(strict_types=1);
    48         $tpl_name = 
"tpl.standard.html";
    53         if (is_array($items) && count($items) == 0) {
    56         $this->
renderItems($items, $tpl, $default_renderer);
    60         if ($label !== null) {
    61             $tpl->setVariable(
"LABEL", $component->
getLabel());
    63             $tpl->setVariable(
"LABEL", 
"");
    71                 : $this->
txt(
"actions");
    72             $tpl->setCurrentBlock(
"aria_label");
    73             $tpl->setVariable(
"ARIA_LABEL", $aria_label);
    74             $tpl->parseCurrentBlock();
    84         foreach ($items as $item) {
    86             $tpl->
setVariable(
"ITEM", $default_renderer->render($item));
   110         parent::registerResources($registry);
   111         $registry->
register(
'./src/UI/templates/js/Dropdown/dropdown.js');
 Registry for resources required by rendered output like Javascript or CSS. 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
checkComponent(Component $component)
Check if a given component fits this renderer and throw  if that is not the case. ...
 
registerResources(ResourceRegistry $registry)
Announce resources this renderer requires. 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
trait JavaScriptBindable
Trait for components implementing JavaScriptBindable providing standard implementation. 
 
txt(string $id)
Get a text from the language file. 
 
renderDropdown(Dropdown $component, RendererInterface $default_renderer)
 
setCurrentBlock(string $name)
Set the block to work on. 
 
createId()
Get a fresh unique id. 
 
setVariable(string $name, $value)
Set a variable in the current block. 
 
getTemplate(string $name, bool $purge_unfilled_vars, bool $purge_unused_blocks)
Get template of component this renderer is made for. 
 
renderId(JavaScriptBindable $component, Template $tpl)
 
register(string $name)
Add a dependency. 
 
parseCurrentBlock()
Parse the block that is currently worked on. 
 
render(Component $component, Renderer $default_renderer)
Render the component if possible and delegate additional rendering to the default_renderer. 
 
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins 
 
renderItems(array $items, Template $tpl, RendererInterface $default_renderer)
 
getComponentInterfaceName()
 
Base class for all component renderers. 
 
This implements commonalities between different types of Dropdowns. 
 
bindJavaScript(JavaScriptBindable $component)
Bind the component to JavaScript.