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

Require column matching while allowing empty sheets #257

Open
puchm opened this issue May 21, 2024 · 0 comments
Open

Require column matching while allowing empty sheets #257

puchm opened this issue May 21, 2024 · 0 comments

Comments

@puchm
Copy link

puchm commented May 21, 2024

Hello,

This is such a great and well made library. Great work!

One thing I have noticed is that it is apparently not possible to require that a column is matched with one in the imported sheet while still allowing empty cells inside of that column.

When you add this validation to a column definition and the user doesn't match it, the user gets prompted before proceeding to the next step:

{
  rule: 'required',
  level: 'info'
}

However, in the data validation step, this will lead to empty fields inside of said columns being highlighted.

I would propose adding a required attribute to the field definition to handle required columns separately from required values in cells.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant