ILIAS
release_10 Revision v10.1-43-ga1241a92c2f
◀ ilDoc Overview
base.php
Go to the documentation of this file.
1
<?php
2
3
declare(strict_types=1);
4
5
namespace
ILIAS\UI\examples\Layout\Alignment\Horizontal\DynamicallyDistributed
;
6
19
function
base
()
20
{
21
global
$DIC
;
22
$ui_factory = $DIC[
'ui.factory'
];
23
$renderer
= $DIC[
'ui.renderer'
];
24
$tpl = $DIC[
'tpl'
];
25
$tpl->addCss(
'assets/ui-examples/css/alignment_examples.css'
);
26
27
$blocks = [
28
$ui_factory->legacy(
'<div class="example_block fullheight blue">Example Block</div>'
),
29
$ui_factory->legacy(
'<div class="example_block fullheight green">Another Example Block</div>'
),
30
$ui_factory->legacy(
'<div class="example_block fullheight yellow">And a third block is also part of this group</div>'
)
31
];
32
33
return
$renderer
->render(
34
$ui_factory->layout()->alignment()->horizontal()
35
->dynamicallyDistributed(...$blocks)
36
);
37
}
$renderer
$renderer
Definition:
build_bootstrap.php:83
$DIC
global $DIC
Definition:
shib_login.php:25
ILIAS\UI\examples\Layout\Alignment\Horizontal\DynamicallyDistributed
Definition:
base.php:5
ILIAS\UI\examples\Layout\Alignment\Horizontal\DynamicallyDistributed\base
base()
expected output: > ILIAS shows three colored text-blocks.
Definition:
base.php:19
components
ILIAS
UI
src
examples
Layout
Alignment
Horizontal
DynamicallyDistributed
base.php
Generated on Wed Sep 10 2025 15:16:44 for ILIAS by
1.8.13 (using
Doxyfile
)