@univerjs/sheets-hyper-link v0.5.1Docs


Interface: IFRangeHyperlinkMixin

Methods

cancelHyperLink(id): Promise<boolean>

Cancel hyperlink in the cell in the range. [!important] This method is async.

Parameters

ParameterTypeDescription
idstringid of the hyperlink

Returns

Promise<boolean>

success or not

Defined in

sheets-hyper-link/src/facade/f-range.ts:51


getHyperLinks(): ICellHyperLink[]

Get all hyperlinks in the cell in the range.

Returns

ICellHyperLink[]

hyperlinks

Defined in

sheets-hyper-link/src/facade/f-range.ts:35


updateHyperLink(
   id, 
   url, 
label?): Promise<boolean>

Update hyperlink in the cell in the range. [!important] This method is async.

Parameters

ParameterTypeDescription
idstringid of the hyperlink
urlstringurl
label?stringoptional, label of the url

Returns

Promise<boolean>

success or not

Defined in

sheets-hyper-link/src/facade/f-range.ts:44