react-csv-importer
react-csv-importer copied to clipboard
Restricting users to select Data has headers option
Hi,
Hats off to this awesome Library!
Currently is it possible to disable Data has headers option in preview import view?
I'm using this library for one of my projects where I want to import a CSV with a static format to process. This CSV has headers and will use same set of columns on each and every time. And I don't want user to allow ticking & unticking Data has Headers option and also I don't want them to enable undo & close buttons in select columns view.
Simply I don't want to allow user to do any changes, just want them to upload the file and import at one go since the CSV format is not changing.

Hey, thanks for the feature suggestion and for the kind words!
So basically in this "read-only" state the main usefulness of this library would be to e.g. show raw preview of data as well as column previews, right? I am thinking also that if a user uploads a file with misnamed columns should there be some kind of error message instead of e.g. allowing them to manually rematch columns?
Just trying to think of how to maybe swap out the entire selector step...