@univerjs/docs v0.4.2 • Docs
Class: DocSkeletonManagerService
This service is for document build and manage doc skeletons. It also manages DocumentViewModels.
Extends
Implements
Constructors
new DocSkeletonManagerService()
new DocSkeletonManagerService(
_context,
_localeService,
_univerInstanceService): DocSkeletonManagerService
Parameters
Parameter | Type |
---|---|
_context | IRenderContext <DocumentDataModel > |
_localeService | LocaleService |
_univerInstanceService | IUniverInstanceService |
Returns
Overrides
Defined in
docs/src/services/doc-skeleton-manager.service.ts:41 (opens in a new tab)
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_disposed | protected | boolean | false | RxDisposable ._disposed | core/src/shared/lifecycle.ts:93 (opens in a new tab) |
currentSkeleton$ | readonly | Observable <Nullable <DocumentSkeleton >> | undefined | - | docs/src/services/doc-skeleton-manager.service.ts:32 (opens in a new tab) |
currentSkeletonBefore$ | readonly | Observable <Nullable <DocumentSkeleton >> | undefined | - | docs/src/services/doc-skeleton-manager.service.ts:36 (opens in a new tab) |
currentViewModel$ | readonly | Observable <Nullable <DocumentViewModel >> | undefined | - | docs/src/services/doc-skeleton-manager.service.ts:39 (opens in a new tab) |
dispose$ | protected | Subject <void > | undefined | RxDisposable .dispose$ | core/src/shared/lifecycle.ts:117 (opens in a new tab) |
Methods
dispose()
dispose(): void
Returns
void
Implementation of
Overrides
Defined in
docs/src/services/doc-skeleton-manager.service.ts:59 (opens in a new tab)
disposeWithMe()
disposeWithMe(disposable): IDisposable
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
Defined in
core/src/shared/lifecycle.ts:96 (opens in a new tab)
ensureNotDisposed()
protected ensureNotDisposed(): void
Returns
void
Inherited from
RxDisposable
.ensureNotDisposed
Defined in
core/src/shared/lifecycle.ts:100 (opens in a new tab)
getSkeleton()
getSkeleton(): DocumentSkeleton
Returns
Defined in
docs/src/services/doc-skeleton-manager.service.ts:66 (opens in a new tab)
getViewModel()
getViewModel(): DocumentViewModel
Returns
Defined in
docs/src/services/doc-skeleton-manager.service.ts:70 (opens in a new tab)