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


Interface: IFWorkbookDataValidationMixin

Methods

getValidatorStatus()

getValidatorStatus(this): Promise<Record<string, ObjectMatrix<Nullable<DataValidationStatus>>>>

get data validation validator status for current workbook

Parameters

ParameterType
thisFWorkbook

Returns

Promise<Record<string, ObjectMatrix<Nullable<DataValidationStatus>>>>

matrix of validator status

Defined in

sheets-data-validation/src/facade/f-workbook.ts:44


onBeforeAddDataValidation()

onBeforeAddDataValidation(this, callback): IDisposable

The onBeforeAddDataValidation event is fired before the data validation rule is added.

Parameters

ParameterTypeDescription
thisFWorkbook-
callback(params, options) => false | voidCallback function that will be called when the event is fired

Returns

IDisposable

A disposable object that can be used to unsubscribe from the event

Defined in

sheets-data-validation/src/facade/f-workbook.ts:69


onBeforeDeleteAllDataValidation()

onBeforeDeleteAllDataValidation(this, callback): IDisposable

The onBeforeDeleteAllDataValidation event is fired before delete all data validation rules.

Parameters

ParameterTypeDescription
thisFWorkbook-
callback(params, options) => false | voidCallback function that will be called when the event is fired

Returns

IDisposable

A disposable object that can be used to unsubscribe from the event

Defined in

sheets-data-validation/src/facade/f-workbook.ts:118


onBeforeDeleteDataValidation()

onBeforeDeleteDataValidation(this, callback): IDisposable

The onBeforeDeleteDataValidation event is fired before the data validation rule is deleted.

Parameters

ParameterTypeDescription
thisFWorkbook-
callback(params, options) => false | voidCallback function that will be called when the event is fired

Returns

IDisposable

A disposable object that can be used to unsubscribe from the event

Defined in

sheets-data-validation/src/facade/f-workbook.ts:108


onBeforeUpdateDataValidationCriteria()

onBeforeUpdateDataValidationCriteria(this, callback): IDisposable

The onBeforeUpdateDataValidationCriteria event is fired before the data validation rule is updated.

Parameters

ParameterTypeDescription
thisFWorkbook-
callback(params, options) => false | voidCallback function that will be called when the event is fired

Returns

IDisposable

A disposable object that can be used to unsubscribe from the event

Defined in

sheets-data-validation/src/facade/f-workbook.ts:79


onBeforeUpdateDataValidationOptions()

onBeforeUpdateDataValidationOptions(this, callback): IDisposable

The onBeforeUpdateDataValidationOptions event is fired before the data validation rule is updated.

Parameters

ParameterTypeDescription
thisFWorkbook-
callback(params, options) => false | voidCallback function that will be called when the event is fired

Returns

IDisposable

A disposable object that can be used to unsubscribe from the event

Defined in

sheets-data-validation/src/facade/f-workbook.ts:98


onBeforeUpdateDataValidationRange()

onBeforeUpdateDataValidationRange(this, callback): IDisposable

The onBeforeUpdateDataValidationRange event is fired before the data validation rule is updated.

Parameters

ParameterTypeDescription
thisFWorkbook-
callback(params, options) => false | voidCallback function that will be called when the event is fired

Returns

IDisposable

A disposable object that can be used to unsubscribe from the event

Defined in

sheets-data-validation/src/facade/f-workbook.ts:89


onDataValidationChange()

onDataValidationChange(callback): IDisposable

The onDataValidationChange event is fired when the data validation rule of this sheet is changed.

Parameters

ParameterTypeDescription
callback(ruleChange) => voidCallback function that will be called when the event is fired

Returns

IDisposable

A disposable object that can be used to unsubscribe from the event

Defined in

sheets-data-validation/src/facade/f-workbook.ts:51


onDataValidationStatusChange()

onDataValidationStatusChange(callback): IDisposable

The onDataValidationStatusChange event is fired when the data validation status of this sheet is changed.

Parameters

ParameterTypeDescription
callback(statusChange) => voidCallback function that will be called when the event is fired

Returns

IDisposable

A disposable object that can be used to unsubscribe from the event

Defined in

sheets-data-validation/src/facade/f-workbook.ts:60