@univerjs/sheets-data-validation v0.4.2 • 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 (opens in a new tab)
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_disposed | protected | boolean | false | Disposable ._disposed | core/src/shared/lifecycle.ts:93 (opens in a new tab) |
Methods
dispose()
dispose(): void
Returns
void
Inherited from
Defined in
core/src/shared/lifecycle.ts:106 (opens in a new tab)
disposeWithMe()
disposeWithMe(disposable): IDisposable
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
Defined in
core/src/shared/lifecycle.ts:96 (opens in a new tab)
ensureNotDisposed()
protected ensureNotDisposed(): void
Returns
void
Inherited from
Defined in
core/src/shared/lifecycle.ts:100 (opens in a new tab)
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 (opens in a new tab)
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 (opens in a new tab)
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 (opens in a new tab)
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 (opens in a new tab)
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 (opens in a new tab)
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 (opens in a new tab)