Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-tabulator

Package Overview
Dependencies
Maintainers
1
Versions
89
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-tabulator - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

2

CHANGELOG.md

@@ -1,4 +0,4 @@

## [0.3.0] - 2018-10-10
## [0.3.1] - 2018-10-10
### Added
- first working version.

@@ -18,2 +18,3 @@ "use strict";

var Tabulator = require('tabulator-tables');
var NOOPS = function () { };
var default_1 = /** @class */ (function (_super) {

@@ -29,14 +30,43 @@ __extends(default_1, _super);

var that = this;
var _a = this.props, _b = _a.height, height = _b === void 0 ? 220 : _b, columns = _a.columns, data = _a.data, onRowClick = _a.onRowClick;
var _a = this.props, _b = _a.height, height = _b === void 0 ? 220 : _b, columns = _a.columns, data = _a.data, rowClick = _a.rowClick, _c = _a.tableBuilding, tableBuilding = _c === void 0 ? NOOPS : _c, _d = _a.tableBuilt, tableBuilt = _d === void 0 ? NOOPS : _d, _e = _a.rowDblClick, rowDblClick = _e === void 0 ? NOOPS : _e, _f = _a.rowContext, rowContext = _f === void 0 ? NOOPS : _f, _g = _a.rowTap, rowTap = _g === void 0 ? NOOPS : _g, _h = _a.rowDblTap, rowDblTap = _h === void 0 ? NOOPS : _h, _j = _a.rowTapHold, rowTapHold = _j === void 0 ? NOOPS : _j, _k = _a.rowAdded, rowAdded = _k === void 0 ? NOOPS : _k, _l = _a.rowDeleted, rowDeleted = _l === void 0 ? NOOPS : _l, _m = _a.rowMoved, rowMoved = _m === void 0 ? NOOPS : _m, _o = _a.rowUpdated, rowUpdated = _o === void 0 ? NOOPS : _o, _p = _a.rowSelectionChanged, rowSelectionChanged = _p === void 0 ? NOOPS : _p, _q = _a.rowSelected, rowSelected = _q === void 0 ? NOOPS : _q, _r = _a.rowDeselected, rowDeselected = _r === void 0 ? NOOPS : _r, _s = _a.rowResized, rowResized = _s === void 0 ? NOOPS : _s, _t = _a.cellClick, cellClick = _t === void 0 ? NOOPS : _t, _u = _a.cellDblClick, cellDblClick = _u === void 0 ? NOOPS : _u, _v = _a.cellContext, cellContext = _v === void 0 ? NOOPS : _v, _w = _a.cellTap, cellTap = _w === void 0 ? NOOPS : _w, _x = _a.cellDblTap, cellDblTap = _x === void 0 ? NOOPS : _x, _y = _a.cellTapHold, cellTapHold = _y === void 0 ? NOOPS : _y, _z = _a.cellEditing, cellEditing = _z === void 0 ? NOOPS : _z, _0 = _a.cellEdited, cellEdited = _0 === void 0 ? NOOPS : _0, _1 = _a.cellEditCancelled, cellEditCancelled = _1 === void 0 ? NOOPS : _1, _2 = _a.columnMoved, columnMoved = _2 === void 0 ? NOOPS : _2, _3 = _a.columnResized, columnResized = _3 === void 0 ? NOOPS : _3, _4 = _a.columnTitleChanged, columnTitleChanged = _4 === void 0 ? NOOPS : _4, _5 = _a.columnVisibilityChanged, columnVisibilityChanged = _5 === void 0 ? NOOPS : _5, _6 = _a.htmlImporting, htmlImporting = _6 === void 0 ? NOOPS : _6, _7 = _a.htmlImported, htmlImported = _7 === void 0 ? NOOPS : _7, _8 = _a.dataLoading, dataLoading = _8 === void 0 ? NOOPS : _8, _9 = _a.dataLoaded, dataLoaded = _9 === void 0 ? NOOPS : _9, _10 = _a.dataEdited, dataEdited = _10 === void 0 ? NOOPS : _10;
var table = new Tabulator("#" + this.mainId, {
height: height,
columns: columns,
tableBuilt: tableBuilt,
rowClick: rowClick,
rowDblClick: rowDblClick,
rowContext: rowContext,
rowTap: rowTap,
rowDblTap: rowDblTap,
rowTapHold: rowTapHold,
rowAdded: rowAdded,
rowDeleted: rowDeleted,
rowMoved: rowMoved,
rowUpdated: rowUpdated,
rowSelectionChanged: rowSelectionChanged,
rowSelected: rowSelected,
rowDeselected: rowDeselected,
rowResized: rowResized,
cellClick: cellClick,
cellDblClick: cellDblClick,
cellContext: cellContext,
cellTap: cellTap,
cellDblTap: cellDblTap,
cellTapHold: cellTapHold,
cellEditing: cellEditing,
cellEdited: cellEdited,
cellEditCancelled: cellEditCancelled,
columnMoved: columnMoved,
columnResized: columnResized,
columnTitleChanged: columnTitleChanged,
columnVisibilityChanged: columnVisibilityChanged,
htmlImporting: htmlImporting,
htmlImported: htmlImported,
dataLoading: dataLoading,
dataLoaded: dataLoaded,
dataEdited: dataEdited,
layout: 'fitColumns',
columns: columns,
tableBuilding: function () {
that.table = this;
},
rowClick: function (e, row) {
if (onRowClick) {
onRowClick(e, row);
}
tableBuilding();
}

@@ -43,0 +73,0 @@ });

@@ -38,5 +38,5 @@ "use strict";

_this.ref = null;
_this.onRowClick = function (e, row) {
_this.rowClick = function (e, row) {
console.log('ref table: ', _this.ref.table); // this is the Tabulator table instance
console.log('onRowClick id: ${row.getData().id}', row, e);
console.log('rowClick id: ${row.getData().id}', row, e);
};

@@ -48,3 +48,3 @@ return _this;

return (React.createElement("div", null,
React.createElement(ReactTabulator_1["default"], { ref: function (ref) { return (_this.ref = ref); }, height: 150, columns: columns, data: data, onRowClick: this.onRowClick })));
React.createElement(ReactTabulator_1["default"], { ref: function (ref) { return (_this.ref = ref); }, height: 150, columns: columns, data: data, tableBuilt: function () { return console.log('tableBuilt'); }, rowClick: this.rowClick, rowDblClick: function () { return console.log('rowDblClick'); } })));
};

@@ -51,0 +51,0 @@ return default_1;

{
"name": "react-tabulator",
"version": "0.3.0",
"version": "0.3.1",
"description": "",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -5,2 +5,4 @@ # react-tabulator

Live Demo: [Codesandbox](https://codesandbox.io/s/y3pllw3oj9)
### 📦 Usage

@@ -17,2 +19,4 @@

Code Example: [/demo/src/index.js](/demo/src/index.js)
### 🔧 Commands

@@ -23,4 +27,10 @@

```
$ npm run start Launch Demo
$ npm run dev Launch DEV mode
$ npm run build Make a build
```
```
### 🙌 Thanks
All contributions are welcome!
[tabulator](https://github.com/olifolkerd/tabulator)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc