@univerjs/sheets-formula v0.5.0-beta.1 • Docs
Class: DescriptionService
Implements
Constructors
new DescriptionService()
new DescriptionService(
_functionService,
_localeService,
_configService): DescriptionService
Parameters
Parameter | Type |
---|---|
_functionService | IFunctionService |
_localeService | LocaleService |
_configService | IConfigService |
Returns
Defined in
submodules/univer/packages/sheets-formula/src/services/description.service.ts:123
Methods
dispose()
dispose(): void
Returns
void
Implementation of
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
Parameter | Type |
---|---|
searchText | string |
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
Parameter | Type |
---|---|
searchText | string |
Returns
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
Parameter | Type |
---|---|
searchText | string |
Returns
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
Parameter | Type |
---|---|
type | number |
Returns
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
Parameter | Type |
---|---|
name | string |
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
Parameter | Type |
---|---|
name | string |
Returns
boolean
Implementation of
IDescriptionService
.hasDescription
Defined in
submodules/univer/packages/sheets-formula/src/services/description.service.ts:208
hasFunction()
hasFunction(searchText): boolean
Parameters
Parameter | Type |
---|---|
searchText | string |
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
Parameter | Type |
---|---|
name | string |
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
Parameter | Type |
---|---|
description | IFunctionInfo [] |
Returns
Implementation of
IDescriptionService
.registerDescriptions
Defined in
submodules/univer/packages/sheets-formula/src/services/description.service.ts:192
unregisterDescriptions()
unregisterDescriptions(functionNames): void
unregister descriptions
Parameters
Parameter | Type |
---|---|
functionNames | string [] |
Returns
void
Implementation of
IDescriptionService
.unregisterDescriptions
Defined in
submodules/univer/packages/sheets-formula/src/services/description.service.ts:202