Select and deselect images in React Spreadsheet
10 Jul 20261 minute to read
You can select images in the spreadsheet either by clicking them in the UI or programmatically using methods.
Select an image via UI:
- Click the image in the worksheet to select it
- Resize handles and a selection border appear around the image
Select an image programmatically:
The selectImage method allows you to programmatically select an image in the active sheet. Pass the image ID to select a specific image, or use the cell address where the image is located.
Deselect an image programmatically:
The deselectImage method removes the selection from the currently active image. Use this method to deselect any selected image without needing to specify an image ID.