Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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
  • Socket score

Version published
Weekly downloads
64
increased by88.24%
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 NameStringexport
typeExport TypeStringtext / json / csv / xlscsv
withBOMAdd BOM(byte order mark) meta to CSV file. BOM is expected by Excel when reading UTF8 CSV file.Booleanfalse
useFormatterWhether to use the formatter attribute provided by Element-UI.Booleantrue
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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc