Skip to content

setCellHyperlink

On this page

Set or remove a hyperlink on a cell.

Pass undefined or an empty string for target to remove an existing link.

setCellHyperlink(cell: CellObject, target?: string, tooltip?: string): CellObject

Parameters

NameTypeRequiredDescription
cellCellObjectYesThe cell object to modify
targetstringNoThe hyperlink URL or path; falsy to remove
tooltipstringNoOptional tooltip text shown on hover

Returns

CellObject

The same cell object, for chaining