{"id":23712040,"url":"https://github.com/jspreadsheet/example-with-angular","last_synced_at":"2025-09-03T17:33:10.932Z","repository":{"id":38460379,"uuid":"256578626","full_name":"jspreadsheet/example-with-angular","owner":"jspreadsheet","description":null,"archived":false,"fork":false,"pushed_at":"2023-03-01T02:40:01.000Z","size":578,"stargazers_count":10,"open_issues_count":11,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-03-05T17:33:50.255Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jspreadsheet.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-04-17T18:20:14.000Z","updated_at":"2023-03-05T17:33:50.255Z","dependencies_parsed_at":"2023-02-15T08:01:55.010Z","dependency_job_id":null,"html_url":"https://github.com/jspreadsheet/example-with-angular","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jspreadsheet%2Fexample-with-angular","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jspreadsheet%2Fexample-with-angular/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jspreadsheet%2Fexample-with-angular/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jspreadsheet%2Fexample-with-angular/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jspreadsheet","download_url":"https://codeload.github.com/jspreadsheet/example-with-angular/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231907801,"owners_count":18444187,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-30T19:56:44.394Z","updated_at":"2024-12-30T19:56:44.920Z","avatar_url":"https://github.com/jspreadsheet.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Jspreadsheet with Angular\n\n## Style\n\nMake sure import the CSS and JS classes in your angular.json file\n\n\u003cpre\u003e\n\"styles\": [\n  ...\n  \"./node_modules/jspreadsheet-ce/dist/jexcel.css\",\n  \"./node_modules/jsuites/dist/jsuites.css\"\n],\n\"scripts\": [\n  \"./node_modules/jspreadsheet-ce/dist/jexcel.js\",\n  \"./node_modules/jsuites/dist/jsuites.js\"\n]\n\u003c/pre\u003e\n\n## HTML FILE\n\n\u003cpre\u003e\n\u0026#60;div #spreadsheet\u003e\u0026#60;/div\u003e\n\u003c/pre\u003e\n\n## Typescript file\n\n\u003cpre\u003e\nimport { Component, OnInit, ViewChild, ElementRef, AfterViewInit } from '@angular/core';\nimport * as jspreadsheet from 'jspreadsheet-ce';\n\n@Component({\n  selector: 'app-jexcel-spreadsheet',\n  templateUrl: './jexcel-spreadsheet.component.html',\n  styleUrls: ['./jexcel-spreadsheet.component.css']\n});\n\nexport class JexcelSpreadsheetComponent implements OnInit, AfterViewInit {\n  @ViewChild('spreadsheet') spreadsheet: ElementRef;\n  constructor() { }\n\n  var data = [\n    ['Mazda', 2001, 2000],\n    ['Pegeout', 2010, 5000],\n    ['Honda Fit', 2009, 3000],\n    ['Honda CRV', 2010, 6000],\n];\n\n  ngOnInit(): void {\n  }\n\n  ngAfterViewInit() {\n    jspreadsheet(this.spreadsheet.nativeElement, {\n      data: this.data,\n        columns: [\n          { title: 'Model', width: 300 },\n          { title: 'Price', width: 80 },\n          { title: 'Model', width: 100 }\n      ],\n      minDimensions: [10, 10]\n    });\n  }\n}\n\u003c/pre\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjspreadsheet%2Fexample-with-angular","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjspreadsheet%2Fexample-with-angular","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjspreadsheet%2Fexample-with-angular/lists"}