Navigate to Sheet Range
Programmatically navigate and scroll to specific cell ranges
Overview
Basic Usage
import { SpreadsheetProvider } from "@rowsncolumns/spreadsheet";
import { useNavigateToSheetRange } from "@rowsncolumns/spreadsheet";
function MySpreadsheet() {
const navigateToSheetRange = useNavigateToSheetRange();
const handleNavigate = () => {
navigateToSheetRange?.({
sheetId: 2,
startRowIndex: 10,
startColumnIndex: 5,
endRowIndex: 15,
endColumnIndex: 10,
});
};
return (
<button onClick={handleNavigate}>
Go to Sheet 2, Range F11:K16
</button>
);
}Hook Usage
Function Signature
Navigation Examples
Navigate to Specific Cell
Navigate to Range
Navigate to Named Range
Complete Example
Use Cases
Search Results Navigation
Error Navigation
Table Navigation
Hyperlink Navigation
Guided Tour
Advanced Features
Smooth Scrolling
Navigation History
Helper Functions
Cell Address to Range
Best Practices
Troubleshooting
Navigation Not Working
Sheet Not Switching
Scroll Position Not Updating
Last updated