• This repository has been archived on 16/Mar/2021
  • Stars
    star
    173
  • Rank 220,124 (Top 5 %)
  • Language
    TypeScript
  • License
    MIT License
  • Created almost 8 years ago
  • Updated almost 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Angular Data Grid with Spreadsheet Look & Feel. Official Angular wrapper for Handsontable.

Important information

We permanently moved this project to the main Handsontable repository at https://github.com/handsontable/handsontable/tree/master/wrappers/angular

It is still available under the same name in npm: @handsontable/angular, so you don't have to update your dependency configuration.





Handsontable for Angular

This is the official wrapper of Handsontable data grid for Angular.
It provides data binding, data validation, filtering, sorting and more.

npm npm Build status



Installation

Use npm to install this wrapper together with Handsontable.

npm install handsontable @handsontable/angular

You can load it directly from jsDelivr as well.

<script src="https://cdn.jsdelivr.net/npm/handsontable/dist/handsontable.full.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@handsontable/angular/bundles/handsontable-angular.umd.min.js"></script>

<link href="https://cdn.jsdelivr.net/npm/handsontable/dist/handsontable.full.min.css" rel="stylesheet">

The component will be available as Handsontable.angular.HotTable.

Usage

Use this data grid as you would any other component in your application. Options can be set as HotTable props.

Styles

@import '~handsontable/dist/handsontable.full.css';

Angular Module

import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
import { HotTableModule } from '@handsontable/angular';
 
@NgModule({
  imports: [
    BrowserModule,
    HotTableModule.forRoot()
  ],
  declarations: [ AppComponent ],
  bootstrap: [ AppComponent ],
})
export class AppModule { }

Angular Component

import { Component } from '@angular/core';

@Component({
  selector: 'my-app',
  templateUrl: './app.component.html',
  styleUrls: [ './app.component.css' ],
})
export class AppComponent  {
  data: any[] = [
    ['', 'Tesla', 'Mercedes', 'Toyota', 'Volvo'],
    ['2019', 10, 11, 12, 13],
    ['2020', 20, 11, 14, 13],
    ['2021', 30, 15, 12, 13]
  ],
}

Template

<hot-table [data]="data" [colHeaders]="true" [rowHeaders]="true" [width]="600" [height]="300"></hot-table>
See the live demo

Features

A list of some of the most popular features:

  • Multiple column sorting
  • Non-contiguous selection
  • Filtering data
  • Export to file
  • Validating data
  • Conditional formatting
  • Merging cells
  • Custom cell types
  • Freezing rows/columns
  • Moving rows/columns
  • Resizing rows/columns
  • Hiding rows/columns
  • Context menu
  • Comments
  • Auto-fill option

Documentation

Support and contribution

We provide support for all users through GitHub issues. If you have a commercial license then you can add a new ticket through the contact form.

If you would like to contribute to this project, make sure you first read the guide for contributors.

Browser compatibility

Handsontable is compatible with modern browsers such as Chrome, Firefox, Safari, Opera, and Edge. It also supports Internet Explorer 9 to 11 but with limited performance.

License

This wrapper is released under the MIT license but under the hood it uses Handsontable, which is dual-licensed. You can either use it for free in all your non-commercial projects or purchase a commercial license.

Free license Paid license
For non-commercial purposes such as teaching, academic research, personal experimentation, and evaluating on development and testing servers. For all commercial purposes
All features are available All features are available
Community support Dedicated support
Read the license See plans

License key

The license key is obligatory since Handsontable 7.0.0 (released in March 2019).

If you use Handsontable for purposes not intended toward monetary compensation such as, but not limited to, teaching, academic research, evaluation, testing and experimentation, pass the phrase 'non-commercial-and-evaluation', as presented below.

You can pass it in the settings object:

settings: {
  data: data,
  rowHeaders: true,
  colHeaders: true,
  licenseKey: 'non-commercial-and-evaluation'
}

Alternatively, you can pass it to a licenseKey prop:

<hot-table [settings]="settings" [licenseKey]="00000-00000-00000-00000-00000"></hot-table>

If, on the other hand, you use Handsontable in a project that supports your commercial activity, then you must purchase the license key at handsontable.com.

The license key is validated in an offline mode. No connection is made to any server. Learn more about how it works.



Created by Handsoncode with ❀ and β˜• in Tricity.

More Repositories

1

handsontable

JavaScript data grid with a spreadsheet look & feel. Works with React, Angular, and Vue. Supported by the Handsontable team ⚑
JavaScript
19,928
star
2

hyperformula

HyperFormula is an open-source headless spreadsheet for business web apps. It comes with over 400 formulas, CRUD operations, undo-redo, clipboard support, and sorting.
TypeScript
1,987
star
3

vue-handsontable-official

Vue Data Grid with Spreadsheet Look & Feel. Official Vue wrapper for Handsontable.
TypeScript
746
star
4

formula-parser

Javascript Library parsing Excel Formulas and more
JavaScript
642
star
5

react-handsontable

React Data Grid with Spreadsheet Look & Feel. Official React wrapper for Handsontable.
TypeScript
517
star
6

ngHandsontable

Official AngularJS directive for Handsontable
JavaScript
433
star
7

ruleJS

Javascript library to parse excel formulas
JavaScript
153
star
8

hot-table

Handsontable - Best Data Grid Web Component with Spreadsheet Look and Feel.
JavaScript
131
star
9

handsontable-pro

Handsontable Pro - Premium JavaScript/HTML5 Data Grid Component with Spreadsheet Look & Feel. Available for React, Vue and Angular.
JavaScript
89
star
10

handsontable-ruleJS

Formula parser for Handsontable data grid using RuleJS library
JavaScript
58
star
11

spreadsheet-viewer

Spreadsheet Viewer is a developer-friendly JavaScript tool that lets your users preview Excel files without leaving your web app
32
star
12

handsontable-skeleton

Handsontable Skeleton
JavaScript
20
star
13

docs

API Documentation for Handsontable
HTML
20
star
14

hot-builder

CLI tool for building custom Handsontable package
JavaScript
16
star
15

hyperformula-demos

JavaScript
12
star
16

performance-lab

JavaScript performance tests for Handsontable
JavaScript
12
star
17

spreadsheet-icons

Spreadsheet icons - a minimalistic icon set for data views (data grids, spreadsheets and tables)
12
star
18

jstat

JavaScript Statistical Library
JavaScript
8
star
19

docs-archive

API Documentation for Handsontable
6
star
20

babel-plugin-forbidden-imports

Babel plugin which adds you ability to forbidden load specific modules
JavaScript
1
star
21

docs-pro-archive

API Documentation for Handsontable Pro
1
star
22

examples

Examples for Handsontable component
TypeScript
1
star