Agregar/eliminar hipervínculos del lado del cliente
Aspose.Cells GridWeb ahora admite agregar y eliminar hipervínculos del lado del cliente. Para ello, el API proporciona las funciones “addCelllink” y “delCelllink”. Los siguientes fragmentos de código muestran cómo agregar y eliminar hipervínculos del lado del cliente en GridWeb.
Código de muestra
// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-.NET | |
<script> | |
function addLink() { | |
var linkinfo={}; | |
linkinfo.url="http://www.aspose.com", | |
linkinfo.text="Link to Aspose Webbsite", | |
gridwebinstance.getByIndex(0).rangeupdate(addCelllink,linkinfo); | |
} | |
function removeLink() { | |
gridwebinstance.getByIndex(0).rangeupdate(delCelllink); | |
} | |
</script> |
También puede vincular a la hoja usando el siguiente fragmento de código.
// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-.NET | |
linkinfo.url="Sheet4!B8", | |
linkinfo.text="link to sheet4 B8", | |
linkinfo.targetsheetindex= 8, | |
linkinfo.targetcellname="B8" |