Go to the source code of this file.
◆ expandable2()
Definition at line 31 of file expandable2.php.
32{
34 $f =
$DIC->ui()->factory();
35 $renderer =
$DIC->ui()->renderer();
36
37
40 $n1 =
new DataNode(
'1', [$n11, $n12]);
42
43 $recursion =
new class implements \
ILIAS\
UI\Component\Tree\TreeRecursion {
44 public function getChildren($record, $environment = null) : array
45 {
46 return $record->getChildren();
47 }
48
49 public function build(
51 $record,
52 $environment = null
53 ) : \
ILIAS\
UI\Component\Tree\Node\Node {
55 }
56 };
57
58 $tree =
$f->tree()->expandable(
"Label", $recursion)
60
61 return $renderer->render($tree);
62}
Class ChatMainBarProvider \MainMenu\Provider.
References $data, $DIC, Vendor\Package\$f, and $factory.