API Reference
@univerjs
@univerjs/sheets-hyper-link-ui
classes
Sheetshyperlinkresolverservice

@univerjs/sheets-hyper-link-ui v0.4.2Docs


Class: SheetsHyperLinkResolverService

Constructors

new SheetsHyperLinkResolverService()

new SheetsHyperLinkResolverService(
   _univerInstanceService, 
   _commandService, 
   _definedNamesService, 
   _messageService, 
   _localeService, 
   _configService): SheetsHyperLinkResolverService

Parameters

ParameterType
_univerInstanceServiceIUniverInstanceService
_commandServiceICommandService
_definedNamesServiceIDefinedNamesService
_messageServiceIMessageService
_localeServiceLocaleService
_configServiceIConfigService

Returns

SheetsHyperLinkResolverService

Defined in

sheets-hyper-link-ui/src/services/resolver.service.ts:58 (opens in a new tab)

Methods

buildHyperLink()

buildHyperLink(
   unitId, 
   sheetId, 
   range?): string

Parameters

ParameterType
unitIdstring
sheetIdstring
range?string | IRange

Returns

string

Defined in

sheets-hyper-link-ui/src/services/resolver.service.ts:174 (opens in a new tab)


navigateTo()

navigateTo(params): void

Parameters

ParameterType
paramsISheetUrlParams

Returns

void

Defined in

sheets-hyper-link-ui/src/services/resolver.service.ts:121 (opens in a new tab)


navigateToDefineName()

navigateToDefineName(unitId, rangeid): Promise<boolean>

Parameters

ParameterType
unitIdstring
rangeidstring

Returns

Promise<boolean>

Defined in

sheets-hyper-link-ui/src/services/resolver.service.ts:302 (opens in a new tab)


navigateToOtherWebsite()

navigateToOtherWebsite(url): Promise<void>

Parameters

ParameterType
urlstring

Returns

Promise<void>

Defined in

sheets-hyper-link-ui/src/services/resolver.service.ts:307 (opens in a new tab)


navigateToRange()

navigateToRange(
   unitId, 
   subUnitId, 
range): Promise<void>

Parameters

ParameterType
unitIdstring
subUnitIdstring
rangeIRange

Returns

Promise<void>

Defined in

sheets-hyper-link-ui/src/services/resolver.service.ts:212 (opens in a new tab)


navigateToSheet()

navigateToSheet(unitId, sheetName): Promise<undefined | boolean>

Parameters

ParameterType
unitIdstring
sheetNamestring

Returns

Promise<undefined | boolean>

Defined in

sheets-hyper-link-ui/src/services/resolver.service.ts:233 (opens in a new tab)


navigateToSheetById()

navigateToSheetById(unitId, subUnitId): Promise<false | Worksheet>

Parameters

ParameterType
unitIdstring
subUnitIdstring

Returns

Promise<false | Worksheet>

Defined in

sheets-hyper-link-ui/src/services/resolver.service.ts:264 (opens in a new tab)


parseHyperLink()

parseHyperLink(urlStr): ISheetHyperLinkInfo

Parameters

ParameterType
urlStrstring

Returns

ISheetHyperLinkInfo

Defined in

sheets-hyper-link-ui/src/services/resolver.service.ts:178 (opens in a new tab)


Copyright © 2021-2024 DreamNum Co,Ltd. All Rights Reserved.