Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

export-excel-sheet-vue-js

dhaneshpawar48MIT1.0.2

Export your data as an Excel Sheet

download excel sheet, excel xlsx, excel, export, json excel, download excel, vue, vue.js, export excel, xlsx, json, export

readme

export-excel-sheet-vue-js

Convert your data as an XLSX file

Getting started

    npm install export-excel-sheet-vue-js --save

Import export-excel-sheet-vue-js in your app:

    import ExportExcelSheetVueJs from "export-excel-sheet-vue-js";
    import Vue from "vue";

    Vue.use(ExportExcelSheetVueJs);

Add in your template

    <ExportExcelSheetVueJs
        :sheetData="sheetrows"
        :columns="columns"
        :filename="filename"
        :sheetname="sheetname"
        >
        Download
    </ExportExcelSheetVueJs>

Add in your script

        data() {
            return {
                columns : [
                       {
                        label: "Student Name",
                        field: "studentName",
                    },
                    {
                        label: "Registration Number / PRN",
                        field: "regno",
                    },
                ],
                data : [
                    {
                        studentName: "Dhanesh Pawar",
                        regno: 10,
                    },
                    {
                        studentName: "Student two name",
                        regno: 30,
                    }
                ],
            }
        }