vue-blob-json-csv
Component library to download a JSON or CSV file using Vue.
Installation
- NPM / Yarn
- Modules
- CDN
Usage
Module
- Use Slot
CDN
Props
Prop | Data Type | Required | Default | Description |
---|---|---|---|---|
tagName |
String | false |
span |
Element Tag Name |
title |
String | false |
Button title name | |
fileType |
String | true |
csv |
File extension (csv or json ) |
fileName |
String | false |
data |
File name |
data |
Array | true |
Data you want to export | |
fields |
Array | false |
Export only specific keys | |
confirm |
String | false |
Text to display in the dialog |
Events
Event | Description |
---|---|
success |
Event after download is complete |
error |
Error |
Contributing
Welcome to improve vue-blob-json-csv with any issue, pull request or code review.