API Reference > ui-components > Tree > MutableTreeModel > insertChild insertChild Method Inserts child in the specified position. If offset is higher then current length of children array, the length is increased. insertChild(parentId: undefined | string, childNodeInput: TreeModelNodeInput, offset: number): void Parameter Type Description parentId undefined | string childNodeInput TreeModelNodeInput offset number Returns - void Defined in ui/components/src/ui-components/tree/controlled/TreeModel.ts Line 272 Last Updated: 11 June, 2024