vue-json-csv icon indicating copy to clipboard operation
vue-json-csv copied to clipboard

Omits a column totally if it doesn't have a value on the first row

Open DrAhmetK opened this issue 3 years ago • 1 comments

My data may have some columns with empty values. The vue-json-csv omits the columns totally if there's an empty cell on the first row.

DrAhmetK avatar Sep 10 '22 16:09 DrAhmetK

I've fixed the problem with a workaround:

I'm already passing the fields property with my csvFields array. I've passed this list to the columns property under advancedOptions:

              :fields="csvFields"
              :advanced-options="{columns:csvFields}"

DrAhmetK avatar Sep 10 '22 16:09 DrAhmetK