API Reference
@univerjs
@univerjs/sheets
functions
Setworksheetcolwidthmutationfactory

@univerjs/sheets v0.4.2Docs


Function: SetWorksheetColWidthMutationFactory()

function SetWorksheetColWidthMutationFactory(params, worksheet): ISetWorksheetColWidthMutationParams

This factory is for generating undo mutations for command DeltaColumnWidthCommand.

Note that this mutation may return multi mutations params if the column width is different for each column in the range.

Parameters

ParameterType
paramsISetWorksheetColWidthMutationParams
worksheetWorksheet

Returns

ISetWorksheetColWidthMutationParams

Defined in

packages/sheets/src/commands/mutations/set-worksheet-col-width.mutation.ts:35 (opens in a new tab)


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