@univerjssheets-formulaindexclassesDescriptionservice

@univerjs/sheets-formula v0.5.0-beta.1Docs


Class: DescriptionService

Implements

Constructors

new DescriptionService()

new DescriptionService(
   _functionService, 
   _localeService, 
   _configService): DescriptionService

Parameters

ParameterType
_functionServiceIFunctionService
_localeServiceLocaleService
_configServiceIConfigService

Returns

DescriptionService

Defined in

submodules/univer/packages/sheets-formula/src/services/description.service.ts:123

Methods

dispose()

dispose(): void

Returns

void

Implementation of

IDisposable.dispose

Defined in

submodules/univer/packages/sheets-formula/src/services/description.service.ts:131


getDescriptions()

getDescriptions(): Map<IFunctionNames, IFunctionInfo>

get all descriptions

Returns

Map<IFunctionNames, IFunctionInfo>

Implementation of

IDescriptionService.getDescriptions

Defined in

submodules/univer/packages/sheets-formula/src/services/description.service.ts:135


getFunctionInfo()

getFunctionInfo(searchText): undefined | IFunctionInfo

get function info by name

Parameters

ParameterType
searchTextstring

Returns

undefined | IFunctionInfo

Implementation of

IDescriptionService.getFunctionInfo

Defined in

submodules/univer/packages/sheets-formula/src/services/description.service.ts:144


getSearchListByName()

getSearchListByName(searchText): ISearchItem[]

get search list by name

Parameters

ParameterType
searchTextstring

Returns

ISearchItem[]

Implementation of

IDescriptionService.getSearchListByName

Defined in

submodules/univer/packages/sheets-formula/src/services/description.service.ts:149


getSearchListByNameFirstLetter()

getSearchListByNameFirstLetter(searchText): ISearchItem[]

get search list by name, from first letter

Parameters

ParameterType
searchTextstring

Returns

ISearchItem[]

Implementation of

IDescriptionService.getSearchListByNameFirstLetter

Defined in

submodules/univer/packages/sheets-formula/src/services/description.service.ts:164


getSearchListByType()

getSearchListByType(type): ISearchItem[]

get search list by type, if type is -1, return all

Parameters

ParameterType
typenumber

Returns

ISearchItem[]

Implementation of

IDescriptionService.getSearchListByType

Defined in

submodules/univer/packages/sheets-formula/src/services/description.service.ts:178


hasDefinedNameDescription()

hasDefinedNameDescription(name): boolean

check if has defined name description

Parameters

ParameterType
namestring

Returns

boolean

Implementation of

IDescriptionService.hasDefinedNameDescription

Defined in

submodules/univer/packages/sheets-formula/src/services/description.service.ts:212


hasDescription()

hasDescription(name): boolean

check if has description

Parameters

ParameterType
namestring

Returns

boolean

Implementation of

IDescriptionService.hasDescription

Defined in

submodules/univer/packages/sheets-formula/src/services/description.service.ts:208


hasFunction()

hasFunction(searchText): boolean

Parameters

ParameterType
searchTextstring

Returns

boolean

Implementation of

IDescriptionService.hasFunction

Defined in

submodules/univer/packages/sheets-formula/src/services/description.service.ts:139


isFormulaDefinedName()

isFormulaDefinedName(name): boolean

check if is formula defined name

Parameters

ParameterType
namestring

Returns

boolean

Implementation of

IDescriptionService.isFormulaDefinedName

Defined in

submodules/univer/packages/sheets-formula/src/services/description.service.ts:216


registerDescriptions()

registerDescriptions(description): IDisposable

register descriptions

Parameters

ParameterType
descriptionIFunctionInfo[]

Returns

IDisposable

Implementation of

IDescriptionService.registerDescriptions

Defined in

submodules/univer/packages/sheets-formula/src/services/description.service.ts:192


unregisterDescriptions()

unregisterDescriptions(functionNames): void

unregister descriptions

Parameters

ParameterType
functionNamesstring[]

Returns

void

Implementation of

IDescriptionService.unregisterDescriptions

Defined in

submodules/univer/packages/sheets-formula/src/services/description.service.ts:202