0.0.8 • Published 11 months ago

ngx-excel-viewer v0.0.8

Weekly downloads
-
License
-
Repository
github
Last release
11 months ago

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
0.0.8

11 months ago

0.0.7

11 months ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago