material-table
Advanced tools
Comparing version 1.39.0 to 1.39.1
@@ -84,3 +84,3 @@ "use strict"; | ||
value: value, | ||
key: "cell-" + _this2.props.data.tableData.di + "-" + columnDef.tableData.id, | ||
key: "cell-" + _this2.props.data.tableData.id + "-" + columnDef.tableData.id, | ||
rowData: _this2.props.data | ||
@@ -87,0 +87,0 @@ }); |
@@ -88,2 +88,6 @@ "use strict"; | ||
if (typeof columnDef.editable == 'function') { | ||
allowEditing = columnDef.editable(columnDef, _this2.props.data); | ||
} | ||
if (!columnDef.field || !allowEditing) { | ||
@@ -90,0 +94,0 @@ return React.createElement(_this2.props.components.Cell, { |
@@ -53,3 +53,3 @@ "use strict"; | ||
lookup: _propTypes["default"].object, | ||
editable: _propTypes["default"].oneOf(['always', 'onUpdate', 'onAdd', 'never']), | ||
editable: _propTypes["default"].oneOf(['always', 'onUpdate', 'onAdd', 'never', _propTypes["default"].func]), | ||
removable: _propTypes["default"].bool, | ||
@@ -56,0 +56,0 @@ render: _propTypes["default"].func, |
{ | ||
"name": "material-table", | ||
"version": "1.39.0", | ||
"version": "1.39.1", | ||
"description": "Datatable for React based on https://material-ui.com/api/table/ with additional features", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -112,3 +112,3 @@ import * as React from 'react'; | ||
lookup?: object; | ||
editable?: ('always' | 'onUpdate' | 'onAdd' | 'never'); | ||
editable?: ('always' | 'onUpdate' | 'onAdd' | 'never' | ((columnDef: Column, rowData: any) => boolean)); | ||
removable?: boolean; | ||
@@ -259,2 +259,3 @@ render?: (data: any, type: ('row' | 'group')) => any; | ||
searchTooltip?: string; | ||
searchPlaceholder?: string; | ||
}; | ||
@@ -261,0 +262,0 @@ } |
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
217117
4817