logo

Sheets Basic

Univer Sheets supports pivot tables, which can sort, filter, analyze data in different dimensions, and support a variety of topics.

JavaScript
import { createUniver, defaultTheme, LocaleType, Tools } from '@univerjs/presets'
import { UniverSheetsCorePreset } from '@univerjs/presets/preset-sheets-core'
import sheetsCoreEnUS from '@univerjs/presets/preset-sheets-core/locales/en-US'

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

const { univerAPI } = createUniver({
  locale: LocaleType.EN_US,
  locales: {
    enUS: Tools.deepMerge(
      {},
      sheetsCoreEnUS,
    ),
  },
  theme: defaultTheme,
  presets: [
    UniverSheetsCorePreset(),
  ],
})

univerAPI.createUniverSheet({ name: 'Test Sheet' })