API Reference > ui-components > Tree > TreeRenderer > scrollToNode scrollToNode Method Scroll to the specified node. scrollToNode(nodeId: string, alignment?: Alignment): void Parameter Type Description nodeId string Id of the target node to scroll to. alignment Alignment Controls scrolling behavior. See react-window documentationon scrollToItem for details. Returns - void Defined in ui/components/src/ui-components/tree/controlled/component/TreeRenderer.tsx Line 167 Last Updated: 12 June, 2024