19declare(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(
71 $node = $record[
'node'];
72 if (isset($record[
'children'])) {
79 $tree =
$f->tree()->expandable(
'Label', $recursion)
Builds a Color from either hex- or rgb values.
The scope of this class is split ilias-conform URI's into components.
This describes a Tree Node.
withExpanded(bool $expanded)
Set $expanded to true to have this node expanded on loading.
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.