@univerjs/ui

GitHubEdit on GitHub

Shared application UI framework, workbench services, menus, dialogs, and Facade UI APIs for Univer.

import { UniverUIPlugin } from '@univerjs/ui'

univer.registerPlugin(UniverUIPlugin, IUniverUIConfig)

IUniverUIConfig

import type { DependencyOverride } from '@univerjs/core'
import type { IWorkbenchOptions } from '../controllers/ui/ui.controller'
import type { MenuConfig } from '../services/menu/menu'

export interface IUniverUIConfig extends IWorkbenchOptions {
  /** Disable auto focus when Univer bootstraps. */
  disableAutoFocus?: true

  override?: DependencyOverride

  menu?: MenuConfig

  popupRootId?: string

  /**
   * The fallback avatar for user.
   */
  avatarFallback?: string
}

Table of Contents

Capalyze