API Reference

FBaseUI

Access

Access through:

Setup

Register @univerjs-pro/bases-ui or a preset that includes it. In plugin mode, import @univerjs-pro/bases-ui/facade. Additional methods below require their listed plugin packages. See Facade setup.

@univerjs-pro/bases-ui

FBaseUI.activateTable

Activates a table in the Base UI state.

TypeScript
activateTable(tableId: string): Promise<void>

Parameters

  • tableId — Required.

Types: Promise

Package: @univerjs-pro/bases-ui · Type definitions

FBaseUI.activateView

Activates a view in the Base UI state.

TypeScript
activateView(viewId: string): Promise<void>

Parameters

  • viewId — Required.

Types: Promise

Package: @univerjs-pro/bases-ui · Type definitions

FBaseUI.closeLeftSidebar

Marks the left sidebar as hidden in the Base UI state.

TypeScript
closeLeftSidebar(): void

Package: @univerjs-pro/bases-ui · Type definitions

FBaseUI.closeRecordDetail

Closes the record detail panel and clears its active record or draft.

TypeScript
closeRecordDetail(): void

Package: @univerjs-pro/bases-ui · Type definitions

FBaseUI.closeRightSidebar

Marks the right sidebar as hidden in the Base UI state.

TypeScript
closeRightSidebar(): void

Package: @univerjs-pro/bases-ui · Type definitions

FBaseUI.getActiveTableId

Returns the active table id, or null when no table is active.

TypeScript
getActiveTableId(): string | null

Package: @univerjs-pro/bases-ui · Type definitions

FBaseUI.getActiveViewId

Returns the active view id, or null when no view is active.

TypeScript
getActiveViewId(): string | null

Package: @univerjs-pro/bases-ui · Type definitions

FBaseUI.getGroupOptions

Returns a shallow copy of the configured group options, or an empty array when none are configured.

TypeScript
getGroupOptions(): IBasePeopleOption[]

Types: IBasePeopleOption

Package: @univerjs-pro/bases-ui · Type definitions

FBaseUI.getPersonOptions

Returns a shallow copy of the configured person options, or an empty array when none are configured.

TypeScript
getPersonOptions(): IBasePeopleOption[]

Types: IBasePeopleOption

Package: @univerjs-pro/bases-ui · Type definitions

FBaseUI.getRenderedView

Currently returns null; this facade does not expose a rendered view instance yet.

TypeScript
getRenderedView(): FBaseRenderedView | null

Types: FBaseRenderedView

Package: @univerjs-pro/bases-ui · Type definitions

FBaseUI.getSelection

Returns the current Base selection, or null when no selection is set.

TypeScript
getSelection(): BaseSelection | null

Types: BaseSelection

Package: @univerjs-pro/bases-ui · Type definitions

FBaseUI.openDraftRecordDetail

Opens a draft record detail panel with initial field values.

TypeScript
openDraftRecordDetail(values?: Record<string, unknown>): void

Parameters

  • values — Optional. Default: {}.

Types: Record

Package: @univerjs-pro/bases-ui · Type definitions

FBaseUI.openFieldConfigPanel

Sets the field id targeted by the field configuration panel.

TypeScript
openFieldConfigPanel(fieldId: string): void

Parameters

  • fieldId — Required.

Package: @univerjs-pro/bases-ui · Type definitions

FBaseUI.openLeftSidebar

Marks the left sidebar as visible in the Base UI state.

TypeScript
openLeftSidebar(): void

Package: @univerjs-pro/bases-ui · Type definitions

FBaseUI.openRecordDetail

Opens the detail panel for an existing record.

TypeScript
openRecordDetail(recordId: string): void

Parameters

  • recordId — Required.

Package: @univerjs-pro/bases-ui · Type definitions

FBaseUI.openRightSidebar

Marks the right sidebar as visible in the Base UI state.

TypeScript
openRightSidebar(): void

Package: @univerjs-pro/bases-ui · Type definitions

FBaseUI.openViewSettingsPanel

Sets the view id targeted by the view settings panel.

TypeScript
openViewSettingsPanel(viewId: string): void

Parameters

  • viewId — Required.

Package: @univerjs-pro/bases-ui · Type definitions

FBaseUI.scrollToField

Sets scroll offsets for the requested view, or the active view when no view id is provided. The current implementation uses options.x and options.y (defaulting to zero); it does not locate the field.

TypeScript
scrollToField(_fieldId: string, options?: IScrollToRecordOptions): void

Parameters

  • _fieldId — Required.
  • options — Optional. Default: {}.

Types: IScrollToRecordOptions

Package: @univerjs-pro/bases-ui · Type definitions

FBaseUI.scrollToRecord

Sets scroll offsets for the requested view, or the active view when no view id is provided. The current implementation uses options.x and options.y (defaulting to zero); it does not locate the record.

TypeScript
scrollToRecord(_recordId: string, options?: IScrollToRecordOptions): void

Parameters

  • _recordId — Required.
  • options — Optional. Default: {}.

Types: IScrollToRecordOptions

Package: @univerjs-pro/bases-ui · Type definitions

FBaseUI.setGroupOptions

Replaces the group options in the Base UI configuration.

TypeScript
setGroupOptions(options: IBasePeopleOption[]): void

Parameters

  • options — Required.

Types: IBasePeopleOption

Package: @univerjs-pro/bases-ui · Type definitions

FBaseUI.setPersonOptions

Replaces the person options in the Base UI configuration.

TypeScript
setPersonOptions(options: IBasePeopleOption[]): void

Parameters

  • options — Required.

Types: IBasePeopleOption

Package: @univerjs-pro/bases-ui · Type definitions

FBaseUI.setSelection

Updates the Base selection. Pass null to clear it.

TypeScript
setSelection(selection: BaseSelection | null): void

Parameters

  • selection — Required.

Types: BaseSelection

Package: @univerjs-pro/bases-ui · Type definitions

FBaseUI.startEditingCell

Starts editing the specified cell and selects it if it is not already selected.

TypeScript
startEditingCell(input: IStartEditingCellInput): void

Parameters

  • input — Required.

Types: IStartEditingCellInput

Package: @univerjs-pro/bases-ui · Type definitions

FBaseUI.stopEditingCell

Clears the active cell editing target and notifies editor subscribers.

TypeScript
stopEditingCell(): void

Package: @univerjs-pro/bases-ui · Type definitions

How is this guide?

© 2026 DreamNum Co., Ltd.