Добавление/удаление гиперссылок с клиентской стороны
Contents
[
Hide
]
В этой теме обсуждается добавление и удаление гиперссылок с клиентской стороны в элементе управления Aspose.Cells.GridWeb.
Aspose.Cells GridWeb теперь поддерживает добавление и удаление гиперссылок с клиентской стороны. Для этого API предоставляет функции “addCelllink” и “delCelllink”. В следующих фрагментах кода показано добавление и удаление гиперссылок с клиентской стороны в GridWeb.
Образец кода
This file contains hidden or 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
// 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> |
Вы также можете ссылаться на лист, используя следующий фрагмент кода.
This file contains hidden or 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
// 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" |