BlockSuite API Documentation / @blocksuite/blocks / DocModeService
Interface: DocModeService
Properties
getMode()
getMode: (
docId
?) =>DocMode
Parameters
• docId?: string
Returns
Source
packages/blocks/src/_common/components/doc-mode-service.ts:8
onModeChange()
onModeChange: (
handler
,docId
?) =>Disposable
Parameters
• handler
• docId?: string
Returns
Disposable
Source
packages/blocks/src/_common/components/doc-mode-service.ts:10
setMode()
setMode: (
mode
,docId
?) =>void
Parameters
• mode: DocMode
• docId?: string
Returns
void
Source
packages/blocks/src/_common/components/doc-mode-service.ts:7
toggleMode()
toggleMode: (
docId
?) =>DocMode
Parameters
• docId?: string
Returns
Source
packages/blocks/src/_common/components/doc-mode-service.ts:9