@univerjs/preset-sheets-core
이 API 페이지의 본문은 현재 영어로 제공됩니다. 코드 시그니처와 식별자는 언어에 따라 바뀌지 않습니다.
TypeScript
import { UniverSheetsCorePreset } from '@univerjs/preset-sheets-core'const preset = UniverSheetsCorePreset()IUniverSheetsCorePresetConfig
| Option | Type | Behavior |
|---|---|---|
container | string or HTMLElement | UI mount container. |
header, toolbar, ribbonType, contextMenu, disableAutoFocus, customFontFamily | UI options | Forwarded to UniverUIPlugin; see UI configuration. |
menu | MenuConfig | Menu item overrides, sibling order for Ribbon tabs/groups/items, and gridLayout for the grid Ribbon. See menu configuration and updateMenuConfig() for runtime updates. |
formulaBar, footer | Sheets UI options | Forwarded to UniverSheetsUIPlugin; see Sheets UI configuration. |
disableTextFormatAlert, disableTextFormatMark | boolean | Control the warning and marker for text-formatted numeric cells. |
docs | IUniverDocsPresetConfig | The preset forwards docs.hasScroll to the Docs model plugin. |
sheets | IUniverSheetsPresetConfig | Row/column style priority, merged-cell auto height, freeze synchronization, maximum auto-height count, clipboard and scrollbar options, protected-range display/user selection, and forced-string warnings. Set sheets.allowArrowKeyWrapOnSheetBoundary to false to stop arrow-key navigation at worksheet edges (default: true). |
formula | IUniverFormulaConfig | Custom functions, function descriptions, initial formula computation and function screen tips. |
workerURL | IUniverRPCMainThreadConfig['workerURL'] | Enables the browser RPC worker for formula computation. Optional when calling the preset function. |
이 가이드는 어떠셨나요?