Skip to Content
๐ŸŽ‰ Univer 0.6.7 is released.Read more โ†’
Playground๐Ÿ“Š Univer SheetsCustom Menu

Custom Menu

Loading...
import { createUniver, defaultTheme, LocaleType, merge } from '@univerjs/presets'
import { UniverSheetsCorePreset } from '@univerjs/presets/preset-sheets-core'
import sheetsCoreEnUS from '@univerjs/presets/preset-sheets-core/locales/en-US'
import { UniverSheetsCustomMenuPlugin } from './plugin'

import './style.css'
import '@univerjs/presets/lib/styles/preset-sheets-core.css'

const { univerAPI } = createUniver({
  locale: LocaleType.EN_US,
  locales: {
    [LocaleType.EN_US]: merge(
      {},
      sheetsCoreEnUS,
    ),
  },
  theme: defaultTheme,
  presets: [
    UniverSheetsCorePreset(),
  ],
  plugins: [
    UniverSheetsCustomMenuPlugin,
  ],
})

univerAPI.createWorkbook({})

Read-only

Was this page helpful?
Last updated on