API Reference > ui-components > Tree > MutableTreeModel > setChildren setChildren Method Sets children for parent node starting from the specific offset. If offset overlaps with already added nodes, the overlapping nodes are overwritten. setChildren(parentId: undefined | string, nodeInputs: TreeModelNodeInput[], offset: number): void Parameter Type Description parentId undefined | string nodeInputs TreeModelNodeInput[] offset number Returns - void Defined in ui/components/src/ui-components/tree/controlled/TreeModel.ts Line 253 Last Updated: 11 June, 2024