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

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


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 (opens in a new tab)
operatorDataValidationOperatorDataValidationOperator.EQUALsheets-data-validation/src/utils/create.ts:28 (opens in a new tab)
rangesIRange[]-sheets-data-validation/src/utils/create.ts:30 (opens in a new tab)
typeDataValidationTypeDataValidationType.DECIMALsheets-data-validation/src/utils/create.ts:27 (opens in a new tab)
uidstring-sheets-data-validation/src/utils/create.ts:26 (opens in a new tab)

Defined in

sheets-data-validation/src/utils/create.ts:21 (opens in a new tab)


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