@univerjs/docs-ui v0.5.0-beta.1 • Docs
Class: DocAutoFormatService
service for auto-formatting, handle shortcut like Space
or Tab
.
Extends
Constructors
new DocAutoFormatService()
new DocAutoFormatService(_univerInstanceService, _textSelectionManagerService): DocAutoFormatService
Parameters
Parameter | Type |
---|---|
_univerInstanceService | IUniverInstanceService |
_textSelectionManagerService | DocSelectionManagerService |
Returns
Overrides
Defined in
submodules/univer/packages/docs-ui/src/services/doc-auto-format.service.ts:85
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_disposed | protected | boolean | false | Disposable ._disposed | submodules/univer/packages/core/src/shared/lifecycle.ts:93 |
Methods
dispose()
dispose(): void
Returns
void
Inherited from
Defined in
submodules/univer/packages/core/src/shared/lifecycle.ts:106
disposeWithMe()
disposeWithMe(disposable): IDisposable
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
Defined in
submodules/univer/packages/core/src/shared/lifecycle.ts:96
ensureNotDisposed()
protected ensureNotDisposed(): void
Returns
void
Inherited from
Defined in
submodules/univer/packages/core/src/shared/lifecycle.ts:100
onAutoFormat()
onAutoFormat(id, params): ICommandInfo<object>[]
Parameters
Parameter | Type |
---|---|
id | string |
params | Nullable <object > |
Returns
ICommandInfo
<object
>[]
Defined in
submodules/univer/packages/docs-ui/src/services/doc-auto-format.service.ts:112
registerAutoFormat()
registerAutoFormat(match): IDisposable
Parameters
Parameter | Type |
---|---|
match | IAutoFormat |
Returns
Defined in
submodules/univer/packages/docs-ui/src/services/doc-auto-format.service.ts:92