You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem or use case? Please describe.
We would like to be able to expand or collapse a particular node on tree.
tree.expandNode(node)
tree.expandNode(nodeId)
OR
node.expand();
Same goes for collapse.
tree.collapseNode(node)
tree.collapseNode(nodeId)
OR
node.collapse();
After expand for a particular node is called, all its parent nodes should also be expanded, otherwise we won't see the node as expanded if parent node remain collapse. onSelect event should not be fired when these API are called to avoid having side effects when expandNode() and collapseNode() are called.
Describe alternatives you've considered
We have considered toggleNode(). But it doesn't work. Imagine we need to expand a node 3 levels deep in a completely collpased tree. toggleNode() on 3 level deep node would not work.
We also tried.
const node = this.tree.findById(id);
node.data = { expanded: true };
this.tree.updateNode(node);
Such expanded: true doesn't work in updateNode.
Additional context
We had created an enhancement request for this API in #3927. But this was missed. So creating a separate enhancement request.
Infor PIM @karinthulin, @Carlfjord
The text was updated successfully, but these errors were encountered:
@tmcconechy, yes, it is still needed. We are right now living with some dirty workaround with jquery class functions, recursive functions on tree node and toggleNode() to achieve what would be provided by this API.
Is your feature request related to a problem or use case? Please describe.
We would like to be able to expand or collapse a particular node on tree.
tree.expandNode(node)
tree.expandNode(nodeId)
OR
node.expand();
Same goes for collapse.
tree.collapseNode(node)
tree.collapseNode(nodeId)
OR
node.collapse();
After expand for a particular node is called, all its parent nodes should also be expanded, otherwise we won't see the node as expanded if parent node remain collapse. onSelect event should not be fired when these API are called to avoid having side effects when expandNode() and collapseNode() are called.
Describe alternatives you've considered
We have considered toggleNode(). But it doesn't work. Imagine we need to expand a node 3 levels deep in a completely collpased tree. toggleNode() on 3 level deep node would not work.
We also tried.
const node = this.tree.findById(id);
node.data = { expanded: true };
this.tree.updateNode(node);
Such expanded: true doesn't work in updateNode.
Additional context
We had created an enhancement request for this API in #3927. But this was missed. So creating a separate enhancement request.
Infor PIM
@karinthulin, @Carlfjord
The text was updated successfully, but these errors were encountered: