@univerjs/sheets-data-validation v0.5.0-beta.1 • 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 |
operator | DataValidationOperator | DataValidationOperator.EQUAL | sheets-data-validation/src/utils/create.ts:28 |
ranges | IRange [] | - | sheets-data-validation/src/utils/create.ts:30 |
type | DataValidationType | DataValidationType.DECIMAL | sheets-data-validation/src/utils/create.ts:27 |
uid | string | - | sheets-data-validation/src/utils/create.ts:26 |
Defined in
sheets-data-validation/src/utils/create.ts:21