19 declare(strict_types=1);
40 $f = $DIC->ui()->factory();
43 $icon =
$f->symbol()->icon()->standard(
"crs",
'Example');
44 $long_byline =
'Lorem ipsum dolor sit amet, consetetur sadipscing elitr, 45 sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquy';
47 $node1 =
$f->tree()->node()->bylined(
'label',
'byline');
48 $node2 =
$f->tree()->node()->bylined(
'label', $long_byline)
49 ->withLink(
new \
ILIAS\
Data\
URI(
'https://docu.ilias.de'));
50 $node3 =
$f->tree()->node()->bylined(
'label',
'byline', $icon);
51 $node4 =
$f->tree()->node()->bylined(
'label',
'byline', $icon)
52 ->withLink(
new \
ILIAS\
Data\
URI(
'https://docu.ilias.de'));
53 $data = [[
'node' => $node1,
'children' => [
55 [
'node' => $node3,
'children' => [
61 public function getChildren($record, $environment =
null): array
63 return $record[
'children'] ?? [];
66 public function build(
70 ): \ILIAS\UI\Component\Tree\Node\Node {
71 $node = $record[
'node'];
72 if (isset($record[
'children'])) {
73 $node = $node->withExpanded(
true);
79 $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
bylined()
description: > Example for rendering a bylined tree node.