API Reference
@univerjs
@univerjs/sheets-ui
classes
Autowidthcontroller

@univerjs/sheets-ui v0.4.2Docs


Class: AutoWidthController

Extends

Constructors

new AutoWidthController()

new AutoWidthController(_renderManagerService, _univerInstanceService): AutoWidthController

Parameters

ParameterType
_renderManagerServiceRenderManagerService
_univerInstanceServiceIUniverInstanceService

Returns

AutoWidthController

Overrides

Disposable.constructor

Defined in

packages/sheets-ui/src/controllers/auto-width.controller.ts:58 (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)


getUndoRedoParamsOfColWidth()

getUndoRedoParamsOfColWidth(params): {
  redos: {
     id: SetWorksheetColWidthMutation.id;
     params: redoParams;
    }[];
  undos: {
     id: SetWorksheetColWidthMutation.id;
     params: undoParams;
    }[];
}

Parameters

ParameterType
paramsRequired<ISetWorksheetColIsAutoWidthCommandParams>

Returns

{
  redos: {
     id: SetWorksheetColWidthMutation.id;
     params: redoParams;
    }[];
  undos: {
     id: SetWorksheetColWidthMutation.id;
     params: undoParams;
    }[];
}
NameTypeDefined in
redos{ id: SetWorksheetColWidthMutation.id; params: redoParams; }[]packages/sheets-ui/src/controllers/auto-width.controller.ts:98 (opens in a new tab)
undos{ id: SetWorksheetColWidthMutation.id; params: undoParams; }[]packages/sheets-ui/src/controllers/auto-width.controller.ts:92 (opens in a new tab)

Defined in

packages/sheets-ui/src/controllers/auto-width.controller.ts:65 (opens in a new tab)


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