We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Template
<JsonCSV :data="json_data" :fields="getCSVFields" :labels="getCSVLabels" > Download </JsonCSV>
Code:
import JsonCSV from "vue-json-csv"; export default { components: { JsonCSV }, data() { json_data: [ { 'name': 'Tony Peña', 'city': 'New York', 'country': 'United States', 'birthdate': '1978-03-15', 'phone': { 'mobile': '1-541-754-3010', 'landline': '(541) 754-3010' } }, { 'name': 'Thessaloniki', 'city': 'Athens', 'country': 'Greece', 'birthdate': '1987-11-23', 'phone': { 'mobile': '+1 855 275 5071', 'landline': '(2741) 2621-244' } } ] } } }, methods: { getCSVFields: function(value,key) { //console.log in here gets called fine if (key == 'groupColor') { return false } return true; }, getCSVLabels: function(value,key) { console.log('getCSVLabels',value,key) //this doesn't show in my console return key+value; } } }
The text was updated successfully, but these errors were encountered:
test(Labels): Add test for Function for labels
64417b3
See #10
cd1e9f6
chore(release): 1.2.3 [skip ci]
5cb8768
## [1.2.3](v1.2.2...v1.2.3) (2019-02-13) ### Bug Fixes * **Fields:** Fix error message ([3ce2b7c](3ce2b7c)) * **Labels:** Fix using labels function ([cd1e9f6](cd1e9f6)), closes [#10](#10)
🎉 This issue has been resolved in version 1.2.3 🎉
The release is available on:
Your semantic-release bot 📦🚀
Sorry, something went wrong.
No branches or pull requests
Template
Code:
The text was updated successfully, but these errors were encountered: