@univerjs/sheets-data-validation v0.5.4
Class: SheetsDataValidationValidatorService
Defined in: sheets-data-validation/src/services/dv-validator-service.ts:23
Extends
Constructors
new SheetsDataValidationValidatorService()
new SheetsDataValidationValidatorService(
_univerInstanceService,
_sheetDataValidationModel,
_dataValidationCacheService,
_lifecycleService): SheetsDataValidationValidatorService
Defined in: sheets-data-validation/src/services/dv-validator-service.ts:24
Parameters
Parameter | Type |
---|---|
_univerInstanceService | IUniverInstanceService |
_sheetDataValidationModel | SheetDataValidationModel |
_dataValidationCacheService | DataValidationCacheService |
_lifecycleService | LifecycleService |
Returns
SheetsDataValidationValidatorService
Overrides
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_disposed | protected | boolean | false | Disposable ._disposed | core/src/shared/lifecycle.ts:96 |
Methods
dispose()
dispose(): void
Defined in: core/src/shared/lifecycle.ts:109
Returns
void
Inherited from
disposeWithMe()
disposeWithMe(disposable): IDisposable
Defined in: core/src/shared/lifecycle.ts:99
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
ensureNotDisposed()
protected ensureNotDisposed(): void
Defined in: core/src/shared/lifecycle.ts:103
Returns
void
Inherited from
getDataValidation()
getDataValidation(
unitId,
subUnitId,
ranges): Nullable<IDataValidationRule>
Defined in: sheets-data-validation/src/services/dv-validator-service.ts:187
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
ranges | IRange [] |
Returns
getDataValidations()
getDataValidations(
unitId,
subUnitId,
ranges): IDataValidationRule[]
Defined in: sheets-data-validation/src/services/dv-validator-service.ts:171
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
ranges | IRange [] |
Returns
validatorCell()
validatorCell(
unitId,
subUnitId,
row,
col): Promise<DataValidationStatus>
Defined in: sheets-data-validation/src/services/dv-validator-service.ts:96
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
row | number |
col | number |
Returns
Promise
<DataValidationStatus
>
validatorRanges()
validatorRanges(
unitId,
subUnitId,
ranges): Promise<Promise<DataValidationStatus>[][]>
Defined in: sheets-data-validation/src/services/dv-validator-service.ts:110
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
ranges | IRange [] |
Returns
Promise
<Promise
<DataValidationStatus
>[][]>
validatorWorkbook()
validatorWorkbook(unitId): Promise<Record<string, ObjectMatrix<Nullable<DataValidationStatus>>>>
Defined in: sheets-data-validation/src/services/dv-validator-service.ts:158
Parameters
Parameter | Type |
---|---|
unitId | string |
Returns
Promise
<Record
<string
, ObjectMatrix
<Nullable
<DataValidationStatus
>>>>
validatorWorksheet()
validatorWorksheet(unitId, subUnitId): Promise<ObjectMatrix<Nullable<DataValidationStatus>>>
Defined in: sheets-data-validation/src/services/dv-validator-service.ts:134
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
Returns
Promise
<ObjectMatrix
<Nullable
<DataValidationStatus
>>>