react-tabulator
Advanced tools
Comparing version 0.14.7 to 0.14.8
@@ -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 |
@@ -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 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1961731
23861
74