material-table
Advanced tools
Comparing version 0.6.8 to 0.7.0
@@ -62,3 +62,3 @@ 'use strict'; | ||
null, | ||
'Actions' | ||
this.props.localization.actions | ||
) | ||
@@ -65,0 +65,0 @@ ), |
@@ -150,3 +150,3 @@ 'use strict'; | ||
var title = this.props.selectedRows ? this.props.selectedRows.length + ' row(s) selected' : this.props.title; | ||
var title = this.props.selectedRows ? this.props.localization.nRowsSelected.replace('{0}', this.props.selectedRows.length) : this.props.title; | ||
return React.createElement( | ||
@@ -183,3 +183,2 @@ _core.Toolbar, | ||
title: 'No Title!' | ||
}; | ||
@@ -186,0 +185,0 @@ |
@@ -363,3 +363,4 @@ 'use strict'; | ||
return _this6.setState({ columns: columns }); | ||
} | ||
}, | ||
localization: Object.assign(MaterialTable.defaultProps.localization, this.props.localization) | ||
}), | ||
@@ -370,2 +371,3 @@ React.createElement( | ||
React.createElement(_mTableHeader2.default, { | ||
localization: Object.assign(MaterialTable.defaultProps.localization, this.props.localization), | ||
columns: this.state.columns, | ||
@@ -419,2 +421,6 @@ hasSelection: props.options.selection, | ||
toolbar: true | ||
}, | ||
localization: { | ||
actions: 'Actions', | ||
nRowsSelected: '{0} row(s) selected' | ||
} | ||
@@ -429,3 +435,4 @@ }; | ||
title: _propTypes2.default.string, | ||
options: _propTypes2.default.object | ||
options: _propTypes2.default.object, | ||
localization: _propTypes2.default.object | ||
}; | ||
@@ -432,0 +439,0 @@ |
{ | ||
"name": "material-table", | ||
"version": "0.6.8", | ||
"version": "0.7.0", | ||
"description": "Datatable for React based on https://material-ui.com/api/table/ with additional features", | ||
@@ -5,0 +5,0 @@ "main": "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
56649
1033