Created
January 4, 2024 23:21
-
-
Save rmdort/5821a844003ec78c1a30cbf00b21947d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Setup | |
const { onIncreaseIndent, onDecreaseIndent } = useSpreadsheetState() | |
return ( | |
<CanvasGrid | |
onIncreaseIndent={onIncreaseIndent} | |
onDecreaseIndent={onDecreaseIndent} | |
/> | |
) | |
// Usage | |
const api = useSpreadsheetApi() | |
api.getActiveSheet().getActiveCell().increaseIndent() | |
api.getActiveSheet().getActiveCell().decreaseIndent() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment