@worksheet-js/angular
v1.6.2
Published
Official Angular component for Worksheet.js, providing a seamless spreadsheet experience in Angular apps.
Readme
@worksheet-js/angular
Industrial-grade spreadsheet UI engine for Angular.
Install
npm install @worksheet-js/core @worksheet-js/angular chart.jsPeer dependencies: @angular/core >= 14, @angular/common >= 14, chart.js >= 4.0.0.
Quick start
// main.ts
import { bootstrapApplication } from '@angular/platform-browser';
import { initializeLicense } from '@worksheet-js/core';
import { AppComponent } from './app/app.component';
initializeLicense('YOUR-LICENSE-KEY');
bootstrapApplication(AppComponent).catch(console.error);// app.component.ts
import { Component } from '@angular/core';
import { WorksheetComponent } from '@worksheet-js/angular';
@Component({
selector: 'app-root',
standalone: true,
imports: [WorksheetComponent],
template: `
<div style="height: 100vh">
<wjs-worksheet [options]="options" />
</div>
`,
})
export class AppComponent {
options = {
worksheets: [{ worksheetName: 'Sheet1' }],
toolbar: true,
};
}Angular Universal / SSR guide, @ViewChild usage, event listeners, and full API on worksheetjs.com.
License
MIT. The underlying @worksheet-js/core is proprietary — email [email protected] for a key.
