@univerjs/sheets-data-validation v0.5.1 • Docs
Interface: IFRangeDataValidationMixin
Methods
getDataValidation()
getDataValidation(this): Nullable<FDataValidation>
get first data validation rule in current range
Parameters
Parameter | Type |
---|---|
this | FRange |
Returns
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
Parameter | Type |
---|---|
this | FRange |
Returns
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
Parameter | Type | Description |
---|---|---|
this | FRange | - |
rule | Nullable <FDataValidation > | data validation rule, build by FUniver.newDataValidation |
Returns
Promise
<FRange
>
current range
Defined in
sheets-data-validation/src/facade/f-range.ts:29