@univerjs/sheets-formula-ui

GitHubEdit on GitHub

Formula editing UI for Univer Sheets.

import { UniverSheetsFormulaUIPlugin } from '@univerjs/sheets-formula-ui'

univer.registerPlugin(UniverSheetsFormulaUIPlugin, IUniverSheetsFormulaUIConfig)

IUniverSheetsFormulaUIConfig

import type { Ctor } from '@univerjs/core'
import type { BaseFunction, IFunctionInfo, IFunctionNames } from '@univerjs/engine-formula'
import type { MenuConfig } from '@univerjs/ui'

export interface IUniverSheetsFormulaUIConfig {
  menu?: MenuConfig
  notExecuteFormula?: boolean
  description?: IFunctionInfo[]
  function?: Array<[Ctor<BaseFunction>, IFunctionNames]>
  /**
   * The switch for the function screen tips display in the formula editor.
   * @default true
   */
  functionScreenTips?: boolean
}