Can I use import options to allow the user to define the CSV delimiter?
I would like to use the import action and I can see that one can introduce custom options for the user to select, and I can see that I can set the CSV delimiter, but what I can't see is how I can use the user's custom option to dictate the CSV delimiter.
Does this make sense?
I looked through the documentation and the code, but it doesn't look like the options are available in a place/time/way where it can be used.
Please point me in the right direction if you know anything. π€
1 Reply
Well, I don't know how I missed it, but I can see that ImportAction has both the options and the CSV delimiter, which can be a closure, but can it accept options?
If not, wouldn't that be helpful to submit a PR that updates the
evaluate()
call to pass along the options?
I would rather do that than to override getCsvDelimiter()
, which I also see as an option.