@univerjs/sheets-ui v0.5.0-beta.1Docs


Class: AutoWidthController

Extends

Constructors

new AutoWidthController()

new AutoWidthController(_renderManagerService, _univerInstanceService): AutoWidthController

Parameters

ParameterType
_renderManagerServiceRenderManagerService
_univerInstanceServiceIUniverInstanceService

Returns

AutoWidthController

Overrides

Disposable.constructor

Defined in

submodules/univer/packages/sheets-ui/src/controllers/auto-width.controller.ts:58

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedsubmodules/univer/packages/core/src/shared/lifecycle.ts:93

Methods

dispose()

dispose(): void

Returns

void

Inherited from

Disposable.dispose

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:106


disposeWithMe()

disposeWithMe(disposable): IDisposable

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:96


ensureNotDisposed()

protected ensureNotDisposed(): void

Returns

void

Inherited from

Disposable.ensureNotDisposed

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:100


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; }[]submodules/univer/packages/sheets-ui/src/controllers/auto-width.controller.ts:98
undos{ id: SetWorksheetColWidthMutation.id; params: undoParams; }[]submodules/univer/packages/sheets-ui/src/controllers/auto-width.controller.ts:92

Defined in

submodules/univer/packages/sheets-ui/src/controllers/auto-width.controller.ts:65