Skip to content

A lightweight vue component to export json data into excel.

Notifications You must be signed in to change notification settings

SabaSystemSadra/vue-json2-excel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vue-json2excel

A lightweight vue js component uses xlsx library to export json data into an excel file.

Project setup

npm install vue-json2-excel --save

or

yarn add vue-json2-excel

Usage

    <template>
        <json2-excel
        :data="data"
        :header="headers"
        :details="{text:'This is a test text appears in details section of execl file'}">
            export
        </json2-excel>
    </template>
    
    <script>
        import Json2Excel from 'vue-json2excel';
        
        export default{
            data(){
                return{
                    data:[['aref','hosseinikia'],['feri','tajedin']],
                    headers:['first_name','last_name'],
                }
            },
            components:{
                Json2Excel
            }
        }
    </script> 

About

A lightweight vue component to export json data into excel.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published