🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket
Book a DemoInstallSign in
Socket

el-table-export

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

el-table-export

Make the Table component in Element-UI support exporting text, json, csv, xls files

1.0.8
latest
Source
npm
Version published
Weekly downloads
52
30%
Maintainers
1
Weekly downloads
 
Created
Source

el-table-export

Make the Table component in Element-UI support exporting text, json, csv, xls files.

简体中文 文档

GitHub stars GitHub license

NPM

Installation

npm install el-table-export --save

or

yarn add el-table-export

Arguments

NameDescTypeOptionalDefault
fileNameFile NameString—export
typeExport TypeStringtext / json / csv / xlscsv
withBOMAdd BOM(byte order mark) meta to CSV file. BOM is expected by Excel when reading UTF8 CSV file.Boolean—false
useFormatterWhether to use the formatter attribute provided by Element-UI.Boolean—true
delimiterAvailable when the export format is CSV file. SourceString—,

DEMO

Demo File

import elTableExport from "el-table-export";

elTableExport(this.$refs.elTable, {
    fileName: "export-demo",
    type: "csv",
    withBOM: false,
}).then((result) => {
    console.info("successfully");
}).catch((err) => {
    console.info("Error: " , err);
});

Keywords

csv

FAQs

Package last updated on 03 Dec 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts