-
-
Notifications
You must be signed in to change notification settings - Fork 648
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
feat(sheets-data-validation): add validator service allowing developer to get status of data-validation #2412
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev #2412 +/- ##
==========================================
- Coverage 27.17% 27.09% -0.09%
==========================================
Files 1649 1647 -2
Lines 83034 83140 +106
Branches 17190 17222 +32
==========================================
- Hits 22568 22525 -43
- Misses 60466 60615 +149 ☔ View full report in Codecov by Sentry. |
View Deployment
🥐 🍔 🥓 🥗 🥘 🌯 🍚 🍛 🍖 🍭 🍧 🍝 🥪 🥖 🍪 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
在 facade 上同时暴露一个接口出来吧
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); |
close #2404
Pull Request Checklist