3 declare(strict_types=1);
    10     $factory = $DIC->ui()->factory();
    11     $renderer = $DIC->ui()->renderer();
    13     $icon = $factory->symbol()
    15         ->standard(
"crs", 
'Example');
    17     $node1 = $factory->tree()
    22     $uri = new \ILIAS\Data\URI(
'https://ilias.de');
    24     $node2 = $factory->tree()
    26         ->simple(
'label', $icon, $uri);
    28     $data = [[
'node' => $node1], [
'node' => $node2]];
    30     $recursion = 
new class () implements \
ILIAS\
UI\
Component\Tree\TreeRecursion {
    31         public function getChildren($record, $environment = null): array
    36         public function build(
    41             return $record[
'node'];
    45     $tree = $factory->tree()->expandable(
'Label', $recursion)
    48     return $renderer->render([$tree]);
 
Class ChatMainBarProvider . 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
This describes a Tree Node.