@univerjs/sheets-formula v0.4.2 • Docs
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
Parameter | Type |
---|---|
searchText | string |
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
Parameter | Type |
---|---|
searchText | string |
Returns
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
Parameter | Type |
---|---|
searchText | string |
Returns
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
Parameter | Type |
---|---|
type | number |
Returns
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
Parameter | Type |
---|---|
name | string |
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
Parameter | Type |
---|---|
name | string |
Returns
boolean
Defined in
packages/sheets-formula/src/services/description.service.ts:103 (opens in a new tab)
hasFunction()
hasFunction(searchText): boolean
Parameters
Parameter | Type |
---|---|
searchText | string |
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
Parameter | Type |
---|---|
name | string |
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
Parameter | Type |
---|---|
functionList | IFunctionInfo [] |
Returns
Defined in
packages/sheets-formula/src/services/description.service.ts:91 (opens in a new tab)
unregisterDescriptions()
unregisterDescriptions(functionNames): void
unregister descriptions
Parameters
Parameter | Type |
---|---|
functionNames | string [] |
Returns
void
Defined in
packages/sheets-formula/src/services/description.service.ts:97 (opens in a new tab)