API 참조

FBoardElementPermission

이 API 페이지의 본문은 현재 영어로 제공됩니다. 코드 시그니처와 식별자는 언어에 따라 바뀌지 않습니다.

Command-backed Edit permission for one stable Board element.

Access

Access through:

Setup

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

@univerjs-pro/boards

FBoardElementPermission.canEdit

Returns the effective Edit result after applying the Board unit and element permissions.

TypeScript
canEdit(): boolean

Returns

Whether the element is currently editable.

Package: @univerjs-pro/boards · Type definitions

FBoardElementPermission.setEditable

Enables or disables editing for one stable Board element.

TypeScript
setEditable(editable?: boolean): Promise<void>

Parameters

  • editable — Optional. Default: true. Whether element editing is allowed. Defaults to true.

Returns

Resolves after the permission command finishes.

Examples

TypeScript
const board = univerAPI.getActiveBoard()if (!board) throw new Error('No active Board.')const element = Object.values(board.getElements())[0]if (!element) throw new Error('Board element not found.')await board.getElementPermission(element.id).setEditable()

Types: Promise

Package: @univerjs-pro/boards · Type definitions

FBoardElementPermission.setReadOnly

Makes this Board element read-only.

TypeScript
setReadOnly(): Promise<void>

Returns

Resolves after the permission command finishes.

Types: Promise

Package: @univerjs-pro/boards · Type definitions

이 가이드는 어떠셨나요?

© 2026 DreamNum Co., Ltd.