3 declare(strict_types=1);
20 $f = $DIC->ui()->factory();
23 $icon =
$f->symbol()->icon()->standard(
"crs",
'Example');
25 $node1 =
$f->tree()->node()->simple(
'label');
26 $node2 =
$f->tree()->node()->simple(
'label', $icon);
28 $data = [[
'node' => $node1], [
'node' => $node2]];
31 public function getChildren($record, $environment = null): array
36 public function build(
40 ): \ILIAS\UI\Component\Tree\Node\Node {
41 return $record[
'node'];
45 $tree =
$f->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.
simple()
description: > Example for rendering a simple tree node.