Configuration

Prop

Details

json-data

Array of the objects which contain the data to display (required). Each key will be a different column at the csv. All the objects should contain the same keys. If empty array an error will be returned. Example: [ { name: 'Joe', surname: 'Roe' }, { name: 'Joe', surname: 'Doe' }]

show-labels

Boolean. If false the first row of the csv will not contain the labels names.

labels

An object of the keys of the labels will be displayed. Use to filter the keys to display and modify their label title. For each key we provide the title of the key to displayed. If not defined all the keys will be parsed. Example: { name: { title: 'First name' } }

csv-title

String. The title of the generated csv. Default: 'csv'

separator

String. The separator of the columns. Default: ','

@update:error

Will be triggered in case of an empty json array, if the labels object has not children or any parsing issue