API Reference > ui-components > Tree > MutableTreeModel > setNumChildren setNumChildren Method Sets number of how many child nodes the parent will have. If parent already has some nodes they are removed. setNumChildren(parentId: string | undefined, numChildren: number): void Parameter Type Description parentId string | undefined numChildren number Returns - void Defined in ui/components/src/ui-components/tree/controlled/TreeModel.ts Line 293 Last Updated: 13 June, 2024