API Reference
@univerjs
@univerjs/sheets-data-validation
functions
Getdatavalidationdiffmutations

@univerjs/sheets-data-validation v0.4.2Docs


Function: getDataValidationDiffMutations()

function getDataValidationDiffMutations(
   unitId, 
   subUnitId, 
   diffs, 
   accessor, 
   source, 
   fillDefaultValue): {
  redoMutations: IMutationInfo<object>[];
  undoMutations: IMutationInfo<object>[];
}

Parameters

ParameterTypeDefault value
unitIdstringundefined
subUnitIdstringundefined
diffsRangeMutation[]undefined
accessorIAccessorundefined
sourceDataValidationChangeSource'command'
fillDefaultValuebooleantrue

Returns

{
  redoMutations: IMutationInfo<object>[];
  undoMutations: IMutationInfo<object>[];
}
NameTypeDefined in
redoMutationsIMutationInfo<object>[]sheets-data-validation/src/commands/commands/data-validation.command.ts:66 (opens in a new tab)
undoMutationsIMutationInfo<object>[]sheets-data-validation/src/commands/commands/data-validation.command.ts:67 (opens in a new tab)

Defined in

sheets-data-validation/src/commands/commands/data-validation.command.ts:50 (opens in a new tab)


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