Skip to content

Commit

Permalink
Add rowProps and cellProps to EuiInMemoryTable.
Browse files Browse the repository at this point in the history
  • Loading branch information
cjcenizal committed May 25, 2018
1 parent 26e357c commit ed982f4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/components/basic_table/in_memory_table.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ const InMemoryTablePropTypes = {
})
]),
selection: SelectionType,
itemId: ItemIdType
itemId: ItemIdType,
rowProps: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
cellProps: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
};

const getInitialQuery = (search) => {
Expand Down Expand Up @@ -271,6 +273,8 @@ export class EuiInMemoryTable extends Component {
sorting: hasSorting,
itemIdToExpandedRowMap,
itemId,
rowProps,
cellProps,
items: _unuseditems, // eslint-disable-line no-unused-vars
search, // eslint-disable-line no-unused-vars
...rest
Expand Down Expand Up @@ -310,6 +314,8 @@ export class EuiInMemoryTable extends Component {
<EuiBasicTable
items={items}
itemId={itemId}
rowProps={rowProps}
cellProps={cellProps}
columns={columns}
pagination={pagination}
sorting={sorting}
Expand Down

0 comments on commit ed982f4

Please sign in to comment.