19 declare(strict_types=1);
36 $f = $DIC->ui()->factory();
39 $icon =
$f->symbol()->icon()->standard(
"crs",
'Example');
41 $node1 =
$f->tree()->node()->simple(
'label');
42 $node2 =
$f->tree()->node()->simple(
'label', $icon);
44 $data = [[
'node' => $node1], [
'node' => $node2]];
47 public function getChildren($record, $environment =
null): array
52 public function build(
56 ): \ILIAS\UI\Component\Tree\Node\Node {
57 return $record[
'node'];
61 $tree =
$f->tree()->expandable(
'Label', $recursion)
Interface Observer Contains several chained tasks and infos about them.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
simple()
description: > Example for rendering a simple tree node.