react-tabulator
Advanced tools
Comparing version 0.7.8 to 0.7.9
@@ -1,2 +0,2 @@ | ||
## [0.7.8] - 2018-11-20 | ||
## [0.7.9] - 2018-11-20 | ||
@@ -3,0 +3,0 @@ ### Added |
"use strict"; | ||
exports.__esModule = true; | ||
var server_1 = require("react-dom/server"); | ||
// .prettierignore (to keep relevant props together) | ||
@@ -34,3 +35,7 @@ var NOOPS = function () { }; | ||
} | ||
if (typeof props['footerElement'] === 'object') { | ||
// convert from JSX to HTML string (tabulator's footerElement accepts string) | ||
output['footerElement'] = server_1.renderToString(props['footerElement']); | ||
} | ||
return output; | ||
}; |
@@ -20,3 +20,3 @@ "use strict"; | ||
content = (React.createElement("div", null, arr.map(function (item) { | ||
return typeof item === 'string' ? React.createElement("span", null, item) : React.createElement("span", null, item.name); | ||
return typeof item === 'string' ? React.createElement("span", { key: item }, item) : React.createElement("span", { key: item.name }, item.name); | ||
}))); | ||
@@ -23,0 +23,0 @@ } |
@@ -108,3 +108,3 @@ "use strict"; | ||
React.createElement("h3", null, "Editable Table"), | ||
React.createElement(ReactTabulator_1["default"], { columns: editableColumns, data: data, cellEdited: function (cell) { return console.log('cellEdited', cell); }, dataEdited: function (newData) { return console.log('dataEdited', newData); } }), | ||
React.createElement(ReactTabulator_1["default"], { columns: editableColumns, data: data, cellEdited: function (cell) { return console.log('cellEdited', cell); }, dataEdited: function (newData) { return console.log('dataEdited', newData); }, footerElement: React.createElement("span", null, "Footer") }), | ||
React.createElement("p", null, | ||
@@ -111,0 +111,0 @@ React.createElement("a", { href: "https://github.com/ngduc/react-tabulator", target: "_blank" }, "Back to: Github Repo: react-tabulator")), |
{ | ||
"name": "react-tabulator", | ||
"version": "0.7.8", | ||
"version": "0.7.9", | ||
"description": "React Tabulator component", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
1148091
13665