Component that lets you convert your Json objects into excel tables
npm i vue vue3-json-to-excel
<vue3-json-to-excel :jsonData="{ hello: 'world', world: 'hello' }" />
Name | Type |
---|---|
jsonData | Object |
fileName | String |
buttonText | String |
<script>
import { defineComponent } from 'vue';
import Vue3JsonToExcel from '@/vue3-json-to-excel.vue';
export default defineComponent({
name: 'ServeDev',
components: {
Vue3JsonToExcel
}
});
</script>
<template>
<div id="app">
<vue3-json-to-excel fileName="myFile" buttonText="Download Halit's excel file" :jsonData="{ hello: 'world', world: 'hello' }" />
</div>
</template>