summaryrefslogtreecommitdiff
path: root/cell.go
diff options
context:
space:
mode:
Diffstat (limited to 'cell.go')
-rw-r--r--cell.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/cell.go b/cell.go
index 1e130dc..a302017 100644
--- a/cell.go
+++ b/cell.go
@@ -686,8 +686,12 @@ type HyperlinkOpts struct {
// the other functions such as `SetCellStyle` or `SetSheetRow`. The below is
// example for external link.
//
+// display, tooltip := "https://github.com/xuri/excelize", "Excelize on GitHub"
// if err := f.SetCellHyperLink("Sheet1", "A3",
-// "https://github.com/xuri/excelize", "External"); err != nil {
+// "https://github.com/xuri/excelize", "External", excelize.HyperlinkOpts{
+// Display: &display,
+// Tooltip: &tooltip,
+// }); err != nil {
// fmt.Println(err)
// }
// // Set underline and font color style for the cell.