Go to the source code of this file.
◆ expandable2()
Definition at line 21 of file expandable2.php.
22{
24 $f =
$DIC->ui()->factory();
25 $renderer =
$DIC->ui()->renderer();
26
27
30 $n1 =
new DataNode(
'1', [$n11, $n12]);
32
33 $recursion =
new class implements \
ILIAS\
UI\Component\Tree\TreeRecursion {
34 public function getChildren($record, $environment = null) : array
35 {
36 return $record->getChildren();
37 }
38
39 public function build(
41 $record,
42 $environment = null
43 ) : \
ILIAS\
UI\Component\Tree\Node\Node {
45 }
46 };
47
48 $tree =
$f->tree()->expandable(
"Label", $recursion)
50
51 return $renderer->render($tree);
52}
Class ChatMainBarProvider \MainMenu\Provider.
References $data, $DIC, Vendor\Package\$f, and $factory.