@univerjssheets-data-validationindexfunctionsCreatedefaultnewrule

@univerjs/sheets-data-validation v0.5.4


Function: createDefaultNewRule()

function createDefaultNewRule(accessor): {
  formula1: string;
  operator: DataValidationOperator;
  ranges: IRange[];
  type: DataValidationType;
  uid: string;
}

Defined in: sheets-data-validation/src/utils/create.ts:21

Parameters

ParameterType
accessorIAccessor

Returns

{
  formula1: string;
  operator: DataValidationOperator;
  ranges: IRange[];
  type: DataValidationType;
  uid: string;
}
NameTypeDefault valueDefined in
formula1string’100’sheets-data-validation/src/utils/create.ts:29
operatorDataValidationOperatorDataValidationOperator.EQUALsheets-data-validation/src/utils/create.ts:28
rangesIRange[]-sheets-data-validation/src/utils/create.ts:30
typeDataValidationTypeDataValidationType.DECIMALsheets-data-validation/src/utils/create.ts:27
uidstring-sheets-data-validation/src/utils/create.ts:26