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.14.7 to 0.14.8

5

CHANGELOG.md

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

## [0.14.7] - 2021-02-25
- feat: when "options" prop changed, rebuild the table.
## [0.14.8] - 2021-02-25
- feat: when "options" prop changed, rebuild and rerender the table.
- fix: take "layout" from prop - thanks @ViralLka
- switched from yarn to npm as yarn build doesn't work anymore.

@@ -4,0 +5,0 @@ - updated peerDependencies for React 17 - thanks @ApacheEx

13

lib/ReactTabulator.js

@@ -101,14 +101,15 @@ "use strict";

default_1.prototype.initTabulator = function () {
var _a;
return __awaiter(this, void 0, void 0, function () {
var domEle, that, _a, columns, data, options, propOptions;
return __generator(this, function (_b) {
switch (_b.label) {
var domEle, that, _b, columns, data, options, propOptions;
return __generator(this, function (_c) {
switch (_c.label) {
case 0:
domEle = ReactDOM.findDOMNode(this.ref);
that = this;
_a = this.props, columns = _a.columns, data = _a.data, options = _a.options;
_b = this.props, columns = _b.columns, data = _b.data, options = _b.options;
return [4 /*yield*/, ConfigUtils_1.propsToOptions(this.props)];
case 1:
propOptions = _b.sent();
new tabulator_tables_1["default"](domEle, __assign(__assign(__assign(__assign({ columns: columns }, propOptions), { layout: 'fitColumns', // fit columns to width of table (optional)
propOptions = _c.sent();
new tabulator_tables_1["default"](domEle, __assign(__assign(__assign(__assign({ columns: columns }, propOptions), { layout: (_a = this.props.layout) !== null && _a !== void 0 ? _a : 'fitColumns', // fit columns to width of table (optional)
tableBuilding: function () {

@@ -115,0 +116,0 @@ that.table = this; // keep the table instance.

{
"name": "react-tabulator",
"version": "0.14.7",
"version": "0.14.8",
"description": "React Tabulator is based on tabulator - a JS table library with many advanced features.",

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

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

- Example - Live Demo: [Codesandbox](https://codesandbox.io/s/0mwpy612xw?module=/src/components/Home.js)
- Example - Source code: [/src/ReactTabulatorExample.tsx](/src/ReactTabulatorExample.tsx)
- More Examples, use cases: [More Codesandbox Examples](/docs/examples.md)
- Live Demo: [Codesandbox](https://codesandbox.io/s/0mwpy612xw?module=/src/components/Home.js)
- Example code: [/src/ReactTabulatorExample.tsx](/src/ReactTabulatorExample.tsx)
- More Examples, Use cases, FAQ: [More Live Examples / Use cases](/docs/examples.md)

@@ -35,3 +35,3 @@ [<img src="docs/react-tabulator-demo.gif" />](https://codesandbox.io/s/0mwpy612xw?module=/src/components/Home.js)

```
$ npm install react-tabulator
$ npm install react-tabulator --save

@@ -47,2 +47,3 @@ import 'react-tabulator/lib/styles.css'; // required styles

```
- More Examples, Use cases, FAQ: [More Live Examples / Use cases](/docs/examples.md)

@@ -49,0 +50,0 @@ ### 🔧 Development - Commands

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