ILIAS  trunk Revision v12.0_alpha-1227-g7ff6d300864
IndirectInputContainerContextRenderer.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
25
34{
35 protected const string INDIRECT_INPUT_CONTAINER_TYPE = "button";
36
37 protected function renderButtonType(Component\Button\Button $component, Template $tpl): void
38 {
39 // add type attribute to prevent form submissions
40 $tpl->setVariable('TYPE', self::INDIRECT_INPUT_CONTAINER_TYPE);
41 }
42}
Button components which are indirect descendants of an Input Container component MUST be rendered wit...
Interface to templating as it is used in the UI framework.
Definition: Template.php:29
setVariable(string $name, $value)
Set a variable in the current block.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: Bulky.php:21
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: Bulky.php:21