All Projects → luwojtaszek → Ngx Excel Export

luwojtaszek / Ngx Excel Export

Angular6 application with export data to excel file functionality.

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to Ngx Excel Export

Api Client Generator
Angular REST API client generator from Swagger YAML or JSON file with camel case settigs
Stars: ✭ 92 (+58.62%)
Mutual labels:  json, angular6, ngx
Ngx Daterangepicker Material
Pure Angular 2+ date range picker with material design theme, a demo here:
Stars: ✭ 169 (+191.38%)
Mutual labels:  angular4, angular6, ngx
Ng Http Loader
🍡 Smart angular HTTP interceptor - Intercepts automagically HTTP requests and shows a spinkit spinner / loader / progress bar
Stars: ✭ 327 (+463.79%)
Mutual labels:  angular4, angular6
Ngx Monaco Editor
Monaco Editor component for Angular 2 and Above
Stars: ✭ 347 (+498.28%)
Mutual labels:  angular4, angular6
Sqlitebiter
A CLI tool to convert CSV / Excel / HTML / JSON / Jupyter Notebook / LDJSON / LTSV / Markdown / SQLite / SSV / TSV / Google-Sheets to a SQLite database file.
Stars: ✭ 601 (+936.21%)
Mutual labels:  excel, json
Angularx Qrcode
Angular4/5/6/7/8/9/10/11 QRCode generator component library for QR Codes (Quick Response) with AOT support based on node-qrcode
Stars: ✭ 281 (+384.48%)
Mutual labels:  angular4, angular6
Sq
swiss-army knife for data
Stars: ✭ 275 (+374.14%)
Mutual labels:  excel, json
Angular Material App
基于最新Angular 9框架与Material 2技术的web中后台前端应用框架。
Stars: ✭ 509 (+777.59%)
Mutual labels:  angular4, angular6
ngx-img
No description or website provided.
Stars: ✭ 25 (-56.9%)
Mutual labels:  angular4, angular6
Angular2 Carousel
An lightweight , touchable and responsive library to create a carousel for angular 2 / 4 / 5
Stars: ✭ 26 (-55.17%)
Mutual labels:  angular4, ngx
Sheetjs
📗 SheetJS Community Edition -- Spreadsheet Data Toolkit
Stars: ✭ 28,479 (+49001.72%)
Mutual labels:  excel, json
Bootstrap
Open Source JS plugins
Stars: ✭ 13 (-77.59%)
Mutual labels:  json, angular4
Angular2 Draggable
Angular directive (for version >= 2.x ) that makes the DOM element draggable and resizable
Stars: ✭ 270 (+365.52%)
Mutual labels:  angular4, angular6
Ngx Scroll To
Scroll to any element to enhance scroll-based features in you app. Works for Angular 4+, both AoT and SSR. No dependencies.
Stars: ✭ 269 (+363.79%)
Mutual labels:  angular4, ngx
Xxl Tool
a series of tools that make Java development more efficient.(Java工具类库XXL-TOOL)
Stars: ✭ 311 (+436.21%)
Mutual labels:  excel, json
Ngx Smart Modal
Modal/Dialog component crafted for Angular
Stars: ✭ 256 (+341.38%)
Mutual labels:  angular4, angular6
Pytablewriter
pytablewriter is a Python library to write a table in various formats: CSV / Elasticsearch / HTML / JavaScript / JSON / LaTeX / LDJSON / LTSV / Markdown / MediaWiki / NumPy / Excel / Pandas / Python / reStructuredText / SQLite / TOML / TSV.
Stars: ✭ 422 (+627.59%)
Mutual labels:  excel, json
Angulartics2
Vendor-agnostic analytics for Angular2 applications.
Stars: ✭ 963 (+1560.34%)
Mutual labels:  angular4, ngx
AngularAI
💬 Angular 6 AI (localhost version is working correctly)
Stars: ✭ 50 (-13.79%)
Mutual labels:  ngx, angular6
Angular-Movies
Angular Movies | TV Shows is a simple web app that consumes The Movie DB API - Angular 13 + Material Angular
Stars: ✭ 35 (-39.66%)
Mutual labels:  angular4, angular6

Description

An example Angular6 application that shows how to export data to an excel file.

Instruction

Start application

Simple start application by executing ng serve command.

Use in your project

Follow this instruction if you want to export data to excel file in your project.

  1. Add xlsx dependency

npm:

npm install xlsx --save

yarn:

yarn install xlsx --save
  1. Implement ExcelService
import {Injectable} from '@angular/core';
import * as XLSX from 'xlsx';

@Injectable()
export class ExcelService {

  constructor() {
  }

  static toExportFileName(excelFileName: string): string {
    return `${excelFileName}_export_${new Date().getTime()}.xlsx`;
  }

  public exportAsExcelFile(json: any[], excelFileName: string): void {
    const worksheet: XLSX.WorkSheet = XLSX.utils.json_to_sheet(json);
    const workbook: XLSX.WorkBook = {Sheets: {'data': worksheet}, SheetNames: ['data']};
    XLSX.writeFile(workbook, ExcelService.toExportFileName(excelFileName));
  }
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].