Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Data verification requires an interface for querying the verification status of the entire table/sub-table #2404

Closed
2 tasks done
weird94 opened this issue Jun 3, 2024 · 2 comments · Fixed by #2412
Closed
2 tasks done
Assignees
Labels
bug Something isn't working

Comments

@weird94
Copy link
Contributor

weird94 commented Jun 3, 2024

在您提交此问题之前,您是否检查了以下内容?

  • 这真的是个问题吗?
  • 我已经在 Github Issues 中搜索过了,但没有找到类似的问题。

受影响的包和版本

@univerjs/sheets-data-validation

复现链接

预期行为

支持

实际行为

不支持

运行环境

Chrome

系统信息

No response

@weird94 weird94 added the bug Something isn't working label Jun 3, 2024
@univer-bot
Copy link

univer-bot bot commented Jun 3, 2024

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿

Origin Title: [Bug] 数据验证需要整表/子表校验状态查询的接口

Title: [Bug] Data verification requires an interface for querying the verification status of the entire table/sub-table


Before you submitted this question, did you check the following?

  • Is this really a problem?
  • I've searched Github Issues but haven't found any similar issues.

Affected packages and versions

@univerjs/sheets-data-validation

Recurrence link

Expected behavior

support

Actual behavior

not support

Running environment

Chrome

system message

No response

@univer-bot univer-bot bot changed the title [Bug] 数据验证需要整表/子表校验状态查询的接口 [Bug] Data verification requires an interface for querying the verification status of the entire table/sub-table Jun 3, 2024
@weird94 weird94 self-assigned this Jun 4, 2024
@weird94
Copy link
Contributor Author

weird94 commented Jun 6, 2024

import { SheetsDataValidationValidatorService } from '@univerjs/sheets-data-validation';

// get injector from you univer instance
const injector = univer.__getInjector();
const validatorService = injector.get(SheetsDataValidationValidatorService);

validatorService.validatorCell(unitId, sheetId, row, col);

validatorService.validatorWorksheet(unitId, sheetId);

validatorService.validatorWorkbook(unitId);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
1 participant