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

YoBulk should support column hooks to do custom validation at cell level. #40

Open
YoBulkMaster opened this issue Dec 16, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@YoBulkMaster
Copy link
Contributor

Example: Column hook Input
[
{ value: "michelledoe@gmail.com", index: 0 },
{ value: "janedoe@gmail.com", index: 1 },
{ value: "steve@hotmail.com", index: 2 },
{ value: "wayne@nhl.com", index: 3 },
];

Column Hook Output:
[
{
index: 0,
value: "michelledoe@aol.com",
info: [
{
message: "Automatically corrected email domain",
level: "info", // should be "info", "warning" or "error"
},
],
},
// we can omit cells that don't need any changes or messages
{
index: 2,
// Don't need to supply value if we're not changing it
info: [
{
message: "Email not found",
level: "error",
},
],
},
];

@YoBulkMaster YoBulkMaster added the enhancement New feature or request label Dec 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants