useSpreadsheet
useSpreadsheet exposes some of the internal API via hooks
Wrap your app in SpreadsheetProvider
to use useSpreadsheet
hook
API | Description |
---|---|
| Manually trigger a cell to be in edit mode |
| Verify if a cell is editable, respects protected ranges |
| Cancels edit mode |
| Trigger focus on the Spreadsheet |
| Get relative position of a cell relative to container |
| Get dimension (x, y, width, height) of a cell |
| Get range around a specific cells that has content |
| Get all named ranges of a sheet |
| Get next available cell that can be focused. Skips hidden cells, rows and columns |
| Returns row height of a rowIndex |
| Get all selections from text |
| Helper function to retrieve table column names |
| Helper function to retrieve table names |
| Callback when user enters value in editor |
| Scroll to a cell |
| Imperatively set value in the editor |
| Submit value of a editor |
| Internal function to update selection references |
| Tokenizer formulas to identify selections and structured references |
Last updated