-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
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
Remove the tree node #1399
Comments
this function is very important, I think the clearChildren need to add index or key ,like this: node.clearChildren (index: int) or node.clearChildren (key: string) |
It can be used like this: export class NzDemoTreeMethodComponent {
nodes = [
// ...
];
remove(node: NzTreeNode): void {
const nodes: NzTreeNode[] = node.parentNode ? node.parentNode.children : this.nodes;
nodes.splice(nodes.findIndex(n => n.key === node.key), 1);
}
} I try to add the function into |
I see the docs don't show anything about using Updating the nodes manually will produce a undesirable flicker animation as seen in this example. Using |
…Node (NG-ZORRO#2976) refactor(module: tree): fix bugs and add extra functions refactor(module: tree): fix spec refactor(module: tree): add doc refactor(module: tree): fix doc refactor(module: tree): support getTreeNodeByKey close NG-ZORRO#1998 close NG-ZORRO#2370 close NG-ZORRO#2655 close NG-ZORRO#2724 close NG-ZORRO#2273 close NG-ZORRO#1399 close NG-ZORRO#2208 close NG-ZORRO#2384 NG-ZORRO#2375
can we remove children word from our nznode data and used another word for that having array like that
] ]; |
…Node (NG-ZORRO#2976) refactor(module: tree): fix bugs and add extra functions refactor(module: tree): fix spec refactor(module: tree): add doc refactor(module: tree): fix doc refactor(module: tree): support getTreeNodeByKey close NG-ZORRO#1998 close NG-ZORRO#2370 close NG-ZORRO#2655 close NG-ZORRO#2724 close NG-ZORRO#2273 close NG-ZORRO#1399 close NG-ZORRO#2208 close NG-ZORRO#2384 NG-ZORRO#2375
What problem does this feature solve?
Remove the tree node
What does the proposed API look like?
The text was updated successfully, but these errors were encountered: