@univerjs/docs-ui v0.4.2 • 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
packages/docs-ui/src/services/doc-auto-format.service.ts:85 (opens in a new tab)
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_disposed | protected | boolean | false | Disposable ._disposed | packages/core/src/shared/lifecycle.ts:93 (opens in a new tab) |
Methods
dispose()
dispose(): void
Returns
void
Inherited from
Defined in
packages/core/src/shared/lifecycle.ts:106 (opens in a new tab)
disposeWithMe()
disposeWithMe(disposable): IDisposable
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
Defined in
packages/core/src/shared/lifecycle.ts:96 (opens in a new tab)
ensureNotDisposed()
protected ensureNotDisposed(): void
Returns
void
Inherited from
Defined in
packages/core/src/shared/lifecycle.ts:100 (opens in a new tab)
onAutoFormat()
onAutoFormat(id, params): ICommandInfo<object>[]
Parameters
Parameter | Type |
---|---|
id | string |
params | Nullable <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
Parameter | Type |
---|---|
match | IAutoFormat |
Returns
Defined in
packages/docs-ui/src/services/doc-auto-format.service.ts:92 (opens in a new tab)