@univerjs/sheets-data-validation v0.5.0-beta.1 • Docs
Class: SheetsDataValidationValidatorService
Extends
Constructors
new SheetsDataValidationValidatorService()
new SheetsDataValidationValidatorService(
_univerInstanceService,
_sheetDataValidationModel,
_dataValidationCacheService,
_lifecycleService): SheetsDataValidationValidatorService
Parameters
Parameter | Type |
---|---|
_univerInstanceService | IUniverInstanceService |
_sheetDataValidationModel | SheetDataValidationModel |
_dataValidationCacheService | DataValidationCacheService |
_lifecycleService | LifecycleService |
Returns
SheetsDataValidationValidatorService
Overrides
Defined in
sheets-data-validation/src/services/dv-validator-service.ts:25
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_disposed | protected | boolean | false | Disposable ._disposed | core/src/shared/lifecycle.ts:93 |
Methods
dispose()
dispose(): void
Returns
void
Inherited from
Defined in
core/src/shared/lifecycle.ts:106
disposeWithMe()
disposeWithMe(disposable): IDisposable
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
Defined in
core/src/shared/lifecycle.ts:96
ensureNotDisposed()
protected ensureNotDisposed(): void
Returns
void
Inherited from
Defined in
core/src/shared/lifecycle.ts:100
getDataValidation()
getDataValidation(
unitId,
subUnitId,
ranges): Nullable<IDataValidationRule>
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
ranges | IRange [] |
Returns
Defined in
sheets-data-validation/src/services/dv-validator-service.ts:159
getDataValidations()
getDataValidations(
unitId,
subUnitId,
ranges): IDataValidationRule[]
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
ranges | IRange [] |
Returns
Defined in
sheets-data-validation/src/services/dv-validator-service.ts:143
validatorCell()
validatorCell(
unitId,
subUnitId,
row,
col): Promise<DataValidationStatus>
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
row | number |
col | number |
Returns
Promise
<DataValidationStatus
>
Defined in
sheets-data-validation/src/services/dv-validator-service.ts:78
validatorRanges()
validatorRanges(
unitId,
subUnitId,
ranges): Promise<Promise<DataValidationStatus>[][]>
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
ranges | IRange [] |
Returns
Promise
<Promise
<DataValidationStatus
>[][]>
Defined in
sheets-data-validation/src/services/dv-validator-service.ts:105
validatorWorkbook()
validatorWorkbook(unitId): Promise<Record<string, ObjectMatrix<Nullable<IDataValidationResCache>>>>
Parameters
Parameter | Type |
---|---|
unitId | string |
Returns
Promise
<Record
<string
, ObjectMatrix
<Nullable
<IDataValidationResCache
>>>>
Defined in
sheets-data-validation/src/services/dv-validator-service.ts:130
validatorWorksheet()
validatorWorksheet(unitId, subUnitId): Promise<ObjectMatrix<Nullable<IDataValidationResCache>>>
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
Returns
Promise
<ObjectMatrix
<Nullable
<IDataValidationResCache
>>>
Defined in
sheets-data-validation/src/services/dv-validator-service.ts:115