3 declare(strict_types=1);
20 $factory = $DIC->ui()->factory();
23 $icon = $factory->symbol()
25 ->standard(
"crs",
'Example');
27 $node1 = $factory->tree()
32 $uri = new \ILIAS\Data\URI(
'https://ilias.de');
34 $node2 = $factory->tree()
36 ->simple(
'label', $icon, $uri);
38 $data = [[
'node' => $node1], [
'node' => $node2]];
41 public function getChildren($record, $environment = null): array
46 public function build(
50 ): \ILIAS\UI\Component\Tree\Node\Node {
51 return $record[
'node'];
55 $tree = $factory->tree()->expandable(
'Label', $recursion)
Interface Observer Contains several chained tasks and infos about them.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This is how the factory for UI elements looks.
simpleWithLink()
description: > Example for rendering a simple tree node with a link.