API Reference
@univerjs
@univerjs/docs-ui
classes
Docautoformatservice

@univerjs/docs-ui v0.4.2Docs


Class: DocAutoFormatService

service for auto-formatting, handle shortcut like Space or Tab.

Extends

Constructors

new DocAutoFormatService()

new DocAutoFormatService(_univerInstanceService, _textSelectionManagerService): DocAutoFormatService

Parameters

ParameterType
_univerInstanceServiceIUniverInstanceService
_textSelectionManagerServiceDocSelectionManagerService

Returns

DocAutoFormatService

Overrides

Disposable.constructor

Defined in

packages/docs-ui/src/services/doc-auto-format.service.ts:85 (opens in a new tab)

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedpackages/core/src/shared/lifecycle.ts:93 (opens in a new tab)

Methods

dispose()

dispose(): void

Returns

void

Inherited from

Disposable.dispose

Defined in

packages/core/src/shared/lifecycle.ts:106 (opens in a new tab)


disposeWithMe()

disposeWithMe(disposable): IDisposable

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe

Defined in

packages/core/src/shared/lifecycle.ts:96 (opens in a new tab)


ensureNotDisposed()

protected ensureNotDisposed(): void

Returns

void

Inherited from

Disposable.ensureNotDisposed

Defined in

packages/core/src/shared/lifecycle.ts:100 (opens in a new tab)


onAutoFormat()

onAutoFormat(id, params): ICommandInfo<object>[]

Parameters

ParameterType
idstring
paramsNullable<object>

Returns

ICommandInfo<object>[]

Defined in

packages/docs-ui/src/services/doc-auto-format.service.ts:112 (opens in a new tab)


registerAutoFormat()

registerAutoFormat(match): IDisposable

Parameters

ParameterType
matchIAutoFormat

Returns

IDisposable

Defined in

packages/docs-ui/src/services/doc-auto-format.service.ts:92 (opens in a new tab)


Copyright © 2021-2024 DreamNum Co,Ltd. All Rights Reserved.