@univerjssheets-data-validationindexfunctionsCreatedefaultnewrule

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


Function: createDefaultNewRule()

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

Parameters

ParameterType
accessorIAccessor

Returns

{
  formula1: '100';
  operator: DataValidationOperator.EQUAL;
  ranges: IRange[];
  type: DataValidationType.DECIMAL;
  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

Defined in

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