API Reference > ui-components > Tree > MutableTreeModel > moveNode moveNode Method Transfers node along with its children to a new location. Fails if destination has undefined child count. moveNode(sourceNodeId: string, targetParentId: undefined | string, targetIndex: number): boolean Parameter Type Description sourceNodeId string Node that is being moved. targetParentId undefined | string Node that will receive a new child. targetIndex number Insertion location among target's current children. Returns - boolean true on success, false otherwise. Defined in ui/components/src/ui-components/tree/controlled/TreeModel.ts Line 321 Last Updated: 11 June, 2024