Skip to content

Latest commit

 

History

History
105 lines (79 loc) · 3.37 KB

README.md

File metadata and controls

105 lines (79 loc) · 3.37 KB

Meteor Handsontable (@version 0.11.0)

This package uses the latest version of Handsontable (currently @version 0.19.0) in MeteorJS.

Installation

  • AtmosphereJS
meteor add awsp:handsontable
  • Manual Installation
    • Clone this repository, add to the directory packages (Create one at your app root if you haven't done so. )
    • Run meteor add awsp:handsontable

Important Notes

This package contains the latest yet slightly modified version of Handsontable (ver 0.19.0). Minor change has been made to the UI as well.
The new version of Handsontable no longer necessary requires jQuery to work. In order to introduce the latest Handsontable to Meteor, a minimum of modification was made to Handsontable in this package to fix some of the conflicts when used in Meteor.

The new way of initializing Handsontable is by following,

var data = [
    ['', 'Maserati', 'Mazda', 'Mercedes', 'Mini', 'Mitsubishi'],
    ['2009', 0, 2941, 4303, 354, 5814],
    ['2010', 3, 2905, 2867, 412, 5284],
    ['2011', 4, 2517, 4822, 552, 6127],
    ['2012', 2, 2422, 5399, 776, 4151]
];
var container = document.getElementById('hot'), hot;


hot = new Handsontable(container, {
    data: data,
    minSpareRows: 1,
    colHeaders: true,
    contextMenu: true
});

It is also possible to do in the old jQuery way.

$("#hot3").handsontable({
    data: data,
    minSpareRows: 1,
    colHeaders: true,
    contextMenu: true
});

Formula Support

Starting from version 0.7.0, you could also enable formulas in Handsontable. This package uses the default styling from Handsontable and RuleJS. However, you can always customize to your own by changing the following 2 classes in CSS.

  • td.formulas
  • td.formula-error
$("#hot3").handsontable({
    formulas: true, // Add this line to enable formulas support
    data: data,
    minSpareRows: 1,
    colHeaders: true,
    contextMenu: true
});

For more details on usage and supported formulas,

Release Notes

  • Version 0.11.0 - Update Handsontable version to 0.19.0.

  • Version 0.10.0 - Update Handsontable version to 0.18.0.

  • Version 0.9.0 - Update Handsontable version to 0.17.0.

  • Version 0.8.1 - Update Handsontable version to 0.16.1.

  • Version 0.8.0 - Update Handsontable version to 0.16.0.

  • Version 0.7.0 - Add formulas support. Add Handsontable license. Change package summary for Handsontable.

  • Version 0.6.1 - Update to the latest version of Handsontable (0.15.1)

  • Version 0.6.0 - Bump Handsontable to version 0.15.0. Removed shadow fixes as 0.15.0 no longer have that. Minor UI tweaked. Removed unnecessary libraries as Handsontable had already included them.

  • Version 0.5.2 - Remove table edge shadow as this is hurting performance especially dealing with large data. Until Handsontable version 0.15.x is stable, shall remove related styles.

  • Version 0.5.1 - Update Handsontable to version 0.14.1. Minor tweaks of UI.

GitHub / Bug Reports

https://github.com/awsp/handsontable-meteor

Versions Tracking

License

MIT License