New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

cdk-table-exporter

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cdk-table-exporter

[![JavaScript Style Guide: Good Parts](https://img.shields.io/badge/code%20style-goodparts-brightgreen.svg?style=flat)](https://github.com/dwyl/goodparts "JavaScript The Good Parts") [![Node version](https://img.shields.io/npm/v/cdk-table-exporter.svg?st

  • 0.0.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
11K
decreased by-8.92%
Maintainers
1
Weekly downloads
 
Created
Source

JavaScript Style Guide: Good Parts Node version

Angular Table Exporter (CdkTable Exporter)

This project is mainly for making CdkTable components exportable as excel files. cdk-table-exporter facilitates the common functionalities for CdkTable implementations abstracting the behavior that can change among different CdkTable implementations, see mat-table-exporter for angular material table export.

Getting Started

Install cdk-table-exporter if you are not using angular material in your project. In this case you have to implement your version of CdkTableExporter abstract class to use as your directive.

npm install cdk-table-exporter

After installing cdk-table-exporter import CdkTableExporterModule in your ngModules

You can find more detail under the corresponding title of Usage section

Usage

Will be updated soon

API

CdkTableExporter

Input/OutputPropertyTypeDescription
@InputcdkTableanyTemplate-referance of CdkTable that's to be exported
@InputexporterButtonanyTemplate-referance of the button that's used to trigger the export
@InputsheetNamestringTemplate-referance of CdkTable that's to be exported
@InputfileNamestringTemplate-referance of CdkTable that's to be exported
@InputhiddenColumnsArray<number>The indexes of the columns that are not wanted in the excel file
@OutputexportStartedEventEmitter<void>Event that's fired when the export started
@OutputexportCompletedEventEmitter<void>Event that's fired when the export completed

JsonExporterService

JsonExporterService is published in cdk-table-exporter project. CdkTableExporter employs this service, hence through inheritance MatTableExporterDirective does too.

exportExcel Method

Exports excel file by employing xlsx sheetjs

ParameterTypeDescription
headeranyAny json object that holds the header information of the exported excel file aka the first row of the excel
rowsArray<any>Any json array that will be the rows of the exported excel
fileNamestringExported excel file's name
sheetNamestringThe name of the sheet that keeps the exported data
hiddenColumnsArray<string>Properties that are wanted to be hidden, i.e. id, createdDate, auditable properties etc.

Licence

Apache-2.0

Keywords

FAQs

Package last updated on 20 Mar 2019

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