@univerjssheets-data-validationfacadeinterfacesIfrangedatavalidationmixin

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


Interface: IFRangeDataValidationMixin

Methods

getDataValidation()

getDataValidation(this): Nullable<FDataValidation>

get first data validation rule in current range

Parameters

ParameterType
thisFRange

Returns

Nullable<FDataValidation>

data validation rule

Defined in

sheets-data-validation/src/facade/f-range.ts:34


getDataValidations()

getDataValidations(this): FDataValidation[]

get all data validation rules in current range

Parameters

ParameterType
thisFRange

Returns

FDataValidation[]

all data validation rules

Defined in

sheets-data-validation/src/facade/f-range.ts:40


getValidatorStatus()

getValidatorStatus(): Promise<Promise<DataValidationStatus>[][]>

Returns

Promise<Promise<DataValidationStatus>[][]>

Defined in

sheets-data-validation/src/facade/f-range.ts:41


setDataValidation()

setDataValidation(this, rule): Promise<FRange>

set a data validation rule to current range

Parameters

ParameterTypeDescription
thisFRange-
ruleNullable<FDataValidation>data validation rule, build by FUniver.newDataValidation

Returns

Promise<FRange>

current range

Defined in

sheets-data-validation/src/facade/f-range.ts:29