Skip to content

Commit

Permalink
Merge pull request #32 from TonyGermaneri/issue-20
Browse files Browse the repository at this point in the history
refactored event signatures.  updated samples to work with new signatures.
  • Loading branch information
TonyGermaneri committed Jul 14, 2017
2 parents 1a3aba3 + c2b0b45 commit 404d022
Show file tree
Hide file tree
Showing 10 changed files with 465 additions and 242 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
Canvas Data Grid
================

[![NPM](https://nodei.co/npm/canvas-datagrid.png?downloads=true)](https://nodei.co/npm/canvas-datagrid/)

* High performance lightweight hierarchal canvas based data grid.
* Support for millions of rows and columns.
* Support for touch based devices.
* Extensible styling, filtering, formatting, resizing, selecting, and ordering.
* Full documentation with live sample code.
* Single canvas element supporting multiple nested tree or cell grids.
* Rich API of events, methods and properties optimized for CRUD, reporting and work flow applications.
* Zero dependencies, very small code base, distributed as a single ~80k (~20k gziped) file.

Expand Down
6 changes: 4 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "canvas-datagrid",
"main": "lib/main.js",
"version": "0.11.8",
"version": "0.11.9",
"ignore": [
"**/.*",
"node_modules",
Expand All @@ -23,7 +23,9 @@
"data-table",
"table",
"datatable",
"spreadsheet"
"spreadsheet",
"javascript",
"html5"
],
"license": "BSD"
}
6 changes: 3 additions & 3 deletions lib/contextMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ define([], function () {
self.createRowOrders();
self.createColumnOrders();
self.storedSettings = undefined;
self.dispatchEvent('resizecolumn', [self.style.columnWidth], self.intf);
self.dispatchEvent('resizerow', [self.style.cellHeight], self.intf);
self.dispatchEvent('resizecolumn', {columnWidth: self.style.columnWidth});
self.dispatchEvent('resizerow', {cellHeight: self.style.cellHeight});
self.setStorageData();
self.resize(true);
self.disposeContextMenu();
Expand Down Expand Up @@ -113,7 +113,7 @@ define([], function () {
}
});
}
if (self.dispatchEvent('contextmenu', [e, contextObject, menuItems, self.contextMenu], self.intf)) { return; }
if (self.dispatchEvent('contextmenu', {NativeEvent: e, cell: contextObject, items: menuItems, contextMenu: self.contextMenu})) { return; }
if (!menuItems.length) {
return;
}
Expand Down
Loading

0 comments on commit 404d022

Please sign in to comment.