API Reference
@univerjs
@univerjs/sheets-formula
interfaces
Idescriptionservice

@univerjs/sheets-formula v0.4.2Docs


Interface: IDescriptionService

Methods

getDescriptions()

getDescriptions(): Map<IFunctionNames, IFunctionInfo>

get all descriptions

Returns

Map<IFunctionNames, IFunctionInfo>

Defined in

packages/sheets-formula/src/services/description.service.ts:56 (opens in a new tab)


getFunctionInfo()

getFunctionInfo(searchText): undefined | IFunctionInfo

get function info by name

Parameters

ParameterType
searchTextstring

Returns

undefined | IFunctionInfo

Defined in

packages/sheets-formula/src/services/description.service.ts:64 (opens in a new tab)


getSearchListByName()

getSearchListByName(searchText): ISearchItem[]

get search list by name

Parameters

ParameterType
searchTextstring

Returns

ISearchItem[]

Defined in

packages/sheets-formula/src/services/description.service.ts:71 (opens in a new tab)


getSearchListByNameFirstLetter()

getSearchListByNameFirstLetter(searchText): ISearchItem[]

get search list by name, from first letter

Parameters

ParameterType
searchTextstring

Returns

ISearchItem[]

Defined in

packages/sheets-formula/src/services/description.service.ts:78 (opens in a new tab)


getSearchListByType()

getSearchListByType(type): ISearchItem[]

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

Parameters

ParameterType
typenumber

Returns

ISearchItem[]

Defined in

packages/sheets-formula/src/services/description.service.ts:85 (opens in a new tab)


hasDefinedNameDescription()

hasDefinedNameDescription(name): boolean

check if has defined name description

Parameters

ParameterType
namestring

Returns

boolean

Defined in

packages/sheets-formula/src/services/description.service.ts:109 (opens in a new tab)


hasDescription()

hasDescription(name): boolean

check if has description

Parameters

ParameterType
namestring

Returns

boolean

Defined in

packages/sheets-formula/src/services/description.service.ts:103 (opens in a new tab)


hasFunction()

hasFunction(searchText): boolean

Parameters

ParameterType
searchTextstring

Returns

boolean

Defined in

packages/sheets-formula/src/services/description.service.ts:58 (opens in a new tab)


isFormulaDefinedName()

isFormulaDefinedName(name): boolean

check if is formula defined name

Parameters

ParameterType
namestring

Returns

boolean

Defined in

packages/sheets-formula/src/services/description.service.ts:115 (opens in a new tab)


registerDescriptions()

registerDescriptions(functionList): IDisposable

register descriptions

Parameters

ParameterType
functionListIFunctionInfo[]

Returns

IDisposable

Defined in

packages/sheets-formula/src/services/description.service.ts:91 (opens in a new tab)


unregisterDescriptions()

unregisterDescriptions(functionNames): void

unregister descriptions

Parameters

ParameterType
functionNamesstring[]

Returns

void

Defined in

packages/sheets-formula/src/services/description.service.ts:97 (opens in a new tab)


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