public function getChildren($parentId): array
{
return $this->getResourcesTree($this->facade->getResources([], "priority"), null, $parentId);
}
Now the problem, what's wrong.
When I open first level node (meaning from root to first level), every child nodes appear correctly. But, if this node has another children and I try to show them, page reload and all nodes are packed up.
And also - when I successfully opened first level from root, same issue is when i want to click edit on this child node.
Do you have any idea, what's wrong with my code, or is it some issue of this library?
Thanks a lot for any suggestions!
I have problem with child nodes in treeview.
This is how I set dataSource - result is array, because example does not work good with Doctrine. IMO array is OK.
And functions for creating tree:
And callback for nodes with children:
Now the problem, what's wrong. When I open first level node (meaning from root to first level), every child nodes appear correctly. But, if this node has another children and I try to show them, page reload and all nodes are packed up. And also - when I successfully opened first level from root, same issue is when i want to click edit on this child node.
Do you have any idea, what's wrong with my code, or is it some issue of this library? Thanks a lot for any suggestions!