React Spreadsheet Hyperlinks
El componente React hoja de cálculo permite la visualización de hipervínculos preexistentes en el libro de Excel, así como la inserción de otros nuevos que pueden vincularse a sitios web, directorios de archivos e incluso otras hojas de cálculo en el libro.
React Spreadsheet Hyperlinks Example
Hyperlinks Overview
Hyperlinks are added to the IgrSpreadsheet control by accessing the Hyperlinks collection on the worksheet that you want to place the hyperlink on. This collection has an Add method that takes a WorksheetHyperlink object, where you can define the cell address, the hyperlink URL to be navigated to, the display text, and a tooltip to optionally be displayed on hover.
Dependencies
When setting up your React spreadsheet control to use hyperlinks, you will need to import the WorksheetHyperlink class like so:
import { WorksheetHyperlink } from 'igniteui-react-excel';
Code Snippet
The following code snippet demonstrates how to add a hyperlink to the currently viewed worksheet in the React IgrSpreadsheet control:
this.spreadsheet.activeWorksheet.hyperlinks().add(new WorksheetHyperlink("A1", "http://es.infragistics.com", "Infragistics", "Infragistics Home Page"));
API References
HyperlinksIgrSpreadsheetWorksheetHyperlink