Skip to content
This repository has been archived by the owner on Dec 13, 2020. It is now read-only.

Commit

Permalink
work in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
Dunkat committed Feb 13, 2017
1 parent 99f0e1f commit 00e8633
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
36 changes: 36 additions & 0 deletions src/components/table/Table.js
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,8 @@ class Table extends Component {
const {selected, rows} = this.state;
const keyProp = keyProperty ? keyProperty : "rowId";

console.log(rows);

if(!!rowData && rowData[tabid]){
let keys = Object.keys(rowData[tabid]);
const item = rowData[tabid];
Expand Down Expand Up @@ -588,6 +590,40 @@ class Table extends Component {
}
}

// return (
// <tbody>
// {rows.map((row, index) =>
// <TableItem
// odd={i & 1}
// entity={entity}
// fields={row.fields}
// rowId={row[keyProp]}
// tabId={tabId}
// cols={cols}
// type={type}
// docId={docId}
// tabIndex={tabIndex}
// readonly={readonly}
// mainTable={mainTable}
// onDoubleClick={() => onDoubleClick && onDoubleClick(row[keyProp])}
// onMouseDown={(e) => handleClick && handleClick(e, row[keyProp])}
// handleRightClick={(e) => handleRightClick(e, row[keyProp])}
// changeListenOnTrue={() => changeListenOnTrue && changeListenOnTrue()}
// changeListenOnFalse={() => changeListenOnFalse && changeListenOnFalse()}
// newRow={i === keys.length-1 ? newRow : false}
// isSelected={selected.indexOf(row[keyProp]) > -1}
// key={index}
// indentSupported={indentSupported}
// indent={row.indent}
// includedDocuments={row.includedDocuments}
// lastSibling={row.lastChild}
// handleSelect={this.selectRangeProduct}
// contextType={row.type}
// />
// )}
// </tbody>
// );

renderEmptyInfo = (data, tabId) => {
const {emptyText, emptyHint} = this.props;

Expand Down
2 changes: 2 additions & 0 deletions src/components/table/TableItemWrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ class TableItemWrapper extends Component {
indentSupported, rows
} = this.props;

console.log(rows);

return (
<tbody>
{rows.map((row, index) =>
Expand Down

0 comments on commit 00e8633

Please sign in to comment.