client/hippo/components/data-table.jsx in hippo-fw-0.9.6 vs client/hippo/components/data-table.jsx in hippo-fw-0.9.7
- old
+ new
@@ -117,20 +117,22 @@
setSortField(index, ascending) {
this.query.setSort({ index, ascending });
}
@computed get gridRenderKey() {
- return `${this.query.results.updateKey}-${this.editIndex}`;
+ return `${this.query.results.fingerprint}-${this.editIndex}`;
}
@computed get columnDefinitions() {
const definitions = map(this.query.info.visibleFields, f =>
extend({
key: f.id,
columnData: f,
dataKey: f.dataIndex || f.id,
headerRenderer: this.headerRenderer,
- }, pick(f, 'width', 'label', 'flexGrow', 'flexShrink', 'cellRenderer')),
+ }, pick(f, 'width', 'label', 'flexGrow', 'flexShrink',
+ 'cellRenderer', 'className', 'headerClassName'),
+ ),
);
if (this.props.editor) {
definitions.unshift({
key: 'edit-toggle',
label: '',