react-tabulator
Advanced tools
Comparing version 0.8.3 to 0.8.4
@@ -0,1 +1,7 @@ | ||
## [0.8.4] - 2019-03-07 | ||
### Changed | ||
- upgraded tabulator to 4.2.2 | ||
- fix: added rowFormatter, placeholder as props | ||
## [0.8.3] - 2019-02-17 | ||
@@ -2,0 +8,0 @@ |
@@ -6,3 +6,3 @@ "use strict"; | ||
var NOOPS = function () { }; | ||
// get callbacks from props (default: NOOP) & set them to Tabulator options | ||
// get callbacks from props (default: NOOP) to set them to Tabulator options later. | ||
exports.propsToOptions = function (props) { | ||
@@ -13,3 +13,4 @@ var output = {}; | ||
'initialSort', 'initialFilter', 'footerElement', 'index', 'keybindings', 'clipboard', 'clipboardCopyStyled', | ||
'clipboardCopySelector', 'clipboardCopyFormatter', 'clipboardCopyHeader', 'clipboardPasteParser', 'clipboardPasteAction']; | ||
'clipboardCopySelector', 'clipboardCopyFormatter', 'clipboardCopyHeader', 'clipboardPasteParser', | ||
'clipboardPasteAction', 'rowFormatter', 'placeholder']; | ||
for (var _i = 0, defaultOptions_1 = defaultOptions; _i < defaultOptions_1.length; _i++) { | ||
@@ -21,3 +22,3 @@ var opt = defaultOptions_1[_i]; | ||
} | ||
var names = ['tableBuilt', 'rowClick', 'rowDblClick', 'rowContext', 'rowTap', 'rowDblTap', 'rowTapHold', | ||
var callbackNames = ['tableBuilt', 'rowClick', 'rowDblClick', 'rowContext', 'rowTap', 'rowDblTap', 'rowTapHold', | ||
'rowAdded', 'rowDeleted', 'rowMoved', 'rowUpdated', 'rowSelectionChanged', 'rowSelected', 'rowDeselected', 'rowResized', | ||
@@ -34,4 +35,4 @@ 'cellClick', 'cellDblClick', 'cellContext', 'cellTap', 'cellDblTap', 'cellTapHold', 'cellEditing', 'cellEdited', 'cellEditCancelled', | ||
'downloadDataFormatter', 'downloadReady', 'downloadComplete']; | ||
for (var _a = 0, names_1 = names; _a < names_1.length; _a++) { | ||
var callbackName = names_1[_a]; | ||
for (var _a = 0, callbackNames_1 = callbackNames; _a < callbackNames_1.length; _a++) { | ||
var callbackName = callbackNames_1[_a]; | ||
output[callbackName] = props[callbackName] || NOOPS; | ||
@@ -38,0 +39,0 @@ } |
{ | ||
"name": "react-tabulator", | ||
"version": "0.8.3", | ||
"version": "0.8.4", | ||
"description": "React Tabulator component", | ||
@@ -49,3 +49,3 @@ "main": "lib/index.js", | ||
"react-tag-autocomplete": "^5.7.1", | ||
"tabulator-tables": "^4.2.1" | ||
"tabulator-tables": "^4.2.2" | ||
}, | ||
@@ -52,0 +52,0 @@ "peerDependencies": { |
@@ -21,3 +21,3 @@ # react-tabulator | ||
Plus: | ||
#### Plus more features: | ||
- React 16.5.x | ||
@@ -34,3 +34,3 @@ - For React 15.x - import `React15Tabulator` | ||
```JS | ||
``` | ||
$ npm install react-tabulator | ||
@@ -42,3 +42,3 @@ | ||
<ReactTabulator columns={columns} data={data} options={} /> | ||
<ReactTabulator columns={columns} data={data} options={} /> | ||
@@ -72,2 +72,2 @@ "options" will be passed directly to Tabulator's options. | ||
While you're here, also check out [ez-react-form](https://github.com/ngduc/ez-react-form) - an easy way to build Forms with React. | ||
While you're here, also check out [ui-form-field](https://github.com/ngduc/ui-form-field) - an easy way to build Forms with React. |
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
1297481
15466
70
Updatedtabulator-tables@^4.2.2