Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ngx-excel-viewer

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

ngx-excel-viewer

Ngx-excel-viewer is an angular library to view/edit excel data in the angular application where data is in the form of matrix of string.

  • 0.0.8
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
173
increased by23.57%
Maintainers
1
Weekly downloads
 
Created
Source

Ngx Excel Viewer

npm npm

Ngx-excel-viewer is an angular library to view/edit excel data in the angular application where data is in the form of matrix of string.

Angular version >= 15.2.0

Usage

<ngx-excel-viewer 
    *ngIf="isFetched" 
    [data]="data" 
    [editable]="isEditable" 
    id="source" 
    saveDataOutput="edited-only"
    (onDataSave)="onSave($event)" 
    [sheetNames]="['Invoice Info']"
    [events]="eventEmitter"
    (onScrollEnd)="onScroll($event)">
</ngx-excel-viewer>
let data = [
  ["Year", "Car Name", "Car Type", "Horse power", "Engine"],
  ["2017", "Telsa", 11, 12, 13],
  ["2018", "Audi", 11, 14, 13],
  ["2019", "BMW", 15, 12, 13]
];

Example

See example

Screenshots

View Excel Viewer

Actions Edit Button (Put button in parent component)

Editing Editing View

Sheets Multiple Sheet Names View

Properties

PropertyValue TypeDescription
idstringid to identify multiple viewers
data{'sheetName': string[ ][ ]}Excel data in the form of multi-dimensional array
editablebooleanEnables/disables edit functionality
sheetNamesstring[ ]Sheet names in the excel data
eventsBehavior Subject <{id: string, type: string}>Triggers events
onDataSavevoid function({ id: string, pageNo: number, sheet: string })Returns data to save
onScrollEndvoid function({ id: string, pageNo: number, sheet: string })Triggered when scrolled to end of viewer (vertically)
saveDataOutput"complete" / "edited-only""complete" returns whole data with modified data included, whereas "edited-only" returns from modified rows

Keywords

FAQs

Package last updated on 27 Jun 2023

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