We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
According to #606, we should use expandedKeys to expand the nodes by default.
expandedKeys
But according to https://primereact.org/treetable/#api.TreeNode, we can also set expanded property when setting a TreeNode, for example:
expanded
TreeNode
const myNode: TreeNode = { id: myId, key: myId, label: myLabel, data: { name: name, type: "task" }, icon: 'pi pi-fw pi-inbox', expanded: true, // DOES NOT WORK children: [{ id: "child1", key: "child1", label: "chld", data: { name: "child1" }, icon: 'pi pi-fw pi-inbox', expanded: true, children: [] }] };
However, after setting to myNode.expanded = true, the node is not expanded.
myNode.expanded = true
No response
"primereact": "^10.8.4", "react": "^18.3.1", "react-dom": "^18.3.1",
Make TreeNode#expanded work.
TreeNode#expanded
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
According to #606, we should use
expandedKeys
to expand the nodes by default.But according to https://primereact.org/treetable/#api.TreeNode, we can also set
expanded
property when setting aTreeNode
, for example:However, after setting to
myNode.expanded = true
, the node is not expanded.Reproducer
No response
System Information
Steps to reproduce the behavior
No response
Expected behavior
Make
TreeNode#expanded
work.The text was updated successfully, but these errors were encountered: