@univerjssheets-data-validationindexfunctionsGetdatavalidationdiffmutations

@univerjs/sheets-data-validation v0.5.0-beta.1Docs


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:67
undoMutationsIMutationInfo<object>[]sheets-data-validation/src/commands/commands/data-validation.command.ts:68

Defined in

sheets-data-validation/src/commands/commands/data-validation.command.ts:51