@univerjs/sheets-data-validation v0.4.2 • Docs
Function: createDefaultNewRule()
function createDefaultNewRule(accessor): {
formula1: '100';
operator: DataValidationOperator.EQUAL;
ranges: IRange[];
type: DataValidationType.DECIMAL;
uid: string;
}
Parameters
Parameter | Type |
---|---|
accessor | IAccessor |
Returns
{
formula1: '100';
operator: DataValidationOperator.EQUAL;
ranges: IRange[];
type: DataValidationType.DECIMAL;
uid: string;
}
Name | Type | Default value | Defined in |
---|---|---|---|
formula1 | string | '100' | sheets-data-validation/src/utils/create.ts:29 (opens in a new tab) |
operator | DataValidationOperator | DataValidationOperator.EQUAL | sheets-data-validation/src/utils/create.ts:28 (opens in a new tab) |
ranges | IRange [] | - | sheets-data-validation/src/utils/create.ts:30 (opens in a new tab) |
type | DataValidationType | DataValidationType.DECIMAL | sheets-data-validation/src/utils/create.ts:27 (opens in a new tab) |
uid | string | - | 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)