0.1.7 • Published 4 years ago

vue-json2excel v0.1.7

Weekly downloads
44
License
-
Repository
-
Last release
4 years ago

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> 
0.1.7

4 years ago

0.1.6

5 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago